Difference between revisions of "Age - Am I a Baby?"
From SimsWiki
m (→Code) |
|||
Line 13: | Line 13: | ||
# Tree type = 0, Header flag = 8, Tree version = 3 (3), Cache flags = 0 | # Tree type = 0, Header flag = 8, Tree version = 3 (3), Cache flags = 0 | ||
− | 0: Age - Get in Temp 0 - Age of Param 0(Me); true: 1, false: error | + | 0: [[Age - Get in Temp 0 - Age of Param 0]](Me); true: 1, false: error |
1: Temp 0 == Const 0x110(Person Ages):0x5(1); true: true, false: false | 1: Temp 0 == Const 0x110(Person Ages):0x5(1); true: true, false: false | ||
Latest revision as of 10:22, 25 April 2007
Age - Am I a Baby? | ||
---|---|---|
Instance: | 0x01AD | |
Game Version: | The Sims 2 |
Contents |
[edit] Code
### # Group = 0x7FD46CD0, Instance = 0x1AD # Title = Age - Am I a Baby? # # Format = 8009, Params = 0, Locals = 0 # Tree type = 0, Header flag = 8, Tree version = 3 (3), Cache flags = 0 0: Age - Get in Temp 0 - Age of Param 0(Me); true: 1, false: error 1: Temp 0 == Const 0x110(Person Ages):0x5(1); true: true, false: false
[edit] Purpose
One of many globals related to age, it allows you to determine the age of the Sim currently interacting with an object.
[edit] Usage
Simply call this BHAV and it will return either true if the Sim is a baby, and false if the sim is not a baby. No arguments are needed.
[edit] Examples
You can see the various age testing functions in many, many Maxis objects. Just browsing through various objects should yield you some examples.