GetAnimalBehavior
An animal’s behaviour.
Syntax
Section titled “Syntax”GetAnimalBehavior(id)| Parameter | Type | |
|---|---|---|
id |
number | the animal |
Returns
Section titled “Returns”string - "calm", "aggressive", "defensive" or "skittish"; "" for anything but an animal
Example
Section titled “Example”if GetAnimalBehavior(wolf) == "calm" then SetAnimalBehavior(wolf, "aggressive") endSee also
Section titled “See also”SetAnimalBehavior · the NPC actors group of the index
