Template:I BaseNPC: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
* '''SetRelationship <string>''' | * '''SetRelationship <string>''' | ||
: Changes this entity's relationship with another entity or class. Format: < | : Changes this entity's relationship with another entity or class. | ||
: Format: <code><NPC name or classname> <new relationship> <priority></code> | |||
: New relationships: | |||
:*D_NU | |||
:*D_HT | |||
:*D_LI | |||
:*D_FR | |||
* '''SetHealth <integer>''' | * '''SetHealth <integer>''' | ||
Line 33: | Line 39: | ||
: Exit scripting state. | : Exit scripting state. | ||
* '''Assault < | * '''Assault <target_destination>''' | ||
: Start an assault. Parameter passed in should be the name of the rally point. | : Start an assault. Parameter passed in should be the name of the rally point. | ||
Line 42: | Line 48: | ||
: Wakes up the NPC if it is sleeping. | : Wakes up the NPC if it is sleeping. | ||
* '''ForgetEntity < | * '''ForgetEntity <target_destination>''' | ||
: Clears out the NPC's knowledge of a named entity. | : Clears out the NPC's knowledge of a named entity. | ||
Revision as of 14:56, 6 April 2006
- SetRelationship <string>
- Changes this entity's relationship with another entity or class.
- Format:
<NPC name or classname> <new relationship> <priority>
- New relationships:
- D_NU
- D_HT
- D_LI
- D_FR
- SetHealth <integer>
- Set this NPC's health.
- SetBodyGroup <integer>
- HACK: Sets this NPC's body group (from 0 - n). You'd better know what you are doing!
- physdamagescale <float>
- Sets the value that scales damage energy when this character is hit by a physics object. NOTE: 0 means this feature is disabled for backwards compatibility.
- Ignite
- Ignite, burst into flames
- Break
- Break, smash into pieces
- StartScripting
- Enter scripting state. In this state, NPCs ignore a variety of stimulus that would make them break out of their scripts: They ignore danger sounds, ignore +USE, don't idle speak or respond to other NPC's idle speech, and so on.
- StopScripting
- Exit scripting state.
- Assault <target_destination>
- Start an assault. Parameter passed in should be the name of the rally point.
- SetSquad <string>
- Set the name of this NPC's squad. It will be removed from any existing squad automatically. Leaving the parameter blank will remove the NPC from any existing squad.
- Wake
- Wakes up the NPC if it is sleeping.
- ForgetEntity <target_destination>
- Clears out the NPC's knowledge of a named entity.
- GagEnable
- Turn on the NPC Gag flag. NPC won't speak outside of choreographed scenes.
- GagDisable
- Turn off the NPC Gag flag.
- IgnoreDangerSounds <float>
- Ignore danger sounds for the specified number of seconds.