Age - Am I an Elder?

From SimsWiki
Revision as of 10:21, 25 April 2007 by Jfade (Talk | contribs)

Jump to: navigation, search
Age - Am I an Elder?
Instance:0x0159
Game Version:The Sims 2


Contents

Code

###
# Group = 0x7FD46CD0, Instance = 0x159
# Title = Age - Am I an Elder?
#
# Format = 8008, Params = 0, Locals = 0
# Tree type = 0, Header flag = 9, Tree version = 3 (3)

    0: Age - Get in Temp 0 - Age of Param 0(Me); true: 1, false: error
    1: Temp 0 == Const 0x110(Person Ages):0x4(51 (0x33)); true: true, false: false

Purpose

One of many globals related to age, it allows you to determine the age of the Sim currently interacting with an object.

Usage

Simply call this BHAV and it will return either true if the Sim is an elder, and false if the sim is not an elder. No arguments are needed.

Examples

You can see the various age testing functions in many, many Maxis objects. Just browsing through various objects should yield you some examples.

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox