Difference between revisions of "BHAV"

From SimsWiki
Jump to: navigation, search
 
Line 13: Line 13:
 
<br clear="all"/>
 
<br clear="all"/>
  
[[Category:Modding]]
+
[[Category:Sims 2 Modding]]
 
[[Category:InternalFormats]]
 
[[Category:InternalFormats]]
 
[[Category:FormatsByName]]
 
[[Category:FormatsByName]]

Latest revision as of 13:09, 17 September 2012

42484156
Short name: BHAV
Long name: Behaviour Function

[edit] Introduction

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.

[edit] Declaring your stack variables

Fields for declaring stack variables
If you use any parameters 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".


Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox