|Long name:||Behaviour Function|
This resource is the one where the programming of an object takes place. The BHAV is the code that runs to control an object. The programming language of a BHAV is known as SimAntics. Each node in a BHAV has an OpCode and a number of operands. These nodes can be linked together so that depending on the outcome of an OpCode, a certain path can be taken through the BHAV.
Declaring your stack variablesparameters into your BHAV, you must declare how many of them in the "Arg Count" field. If you want to make these arguments more useful, you can give them labels (TPRP). If you use any local variables you must declare how many of them in the "Local Var Count".