Difference between revisions of "Template:HPL2 InstanceVars Enemy"
Jump to navigation
Jump to search
m |
|||
| Line 3: | Line 3: | ||
! Name !! Type !! Default !! Description | ! Name !! Type !! Default !! Description | ||
|- | |- | ||
| + | {{#ifeq:{{{1|}}}|amfp| | ||
| + | {{!}} AutoRemoveAtPathEnd {{!}}{{!}} Bool {{!}}{{!}} true {{!}}{{!}} Unused. If enemy should be removed when it reaches the end of the path.<br>Must not be seen by the player and must be more than 10 meters away from them. | ||
| + | {{!}}- | ||
| + | {{!}} AutoReverseAtPathEnd {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy return to its first patrol node if it didn't auto-disable on reaching the end of its path. | ||
| + | {{!}}- | ||
| + | {{!}} mfAutoRemoveMinPlayerDistance {{!}}{{!}} Float {{!}}{{!}} 10 {{!}}{{!}} No effect. Formerly the minimum distance from the player that the enemy needs to be in order to be auto-removed at the end of its path. | ||
| + | {{!}}- | ||
| + | }} | ||
| CallbackFunc || String || || A callback function used for a number of events. Syntax: <code>void Func(string &in asEntityName, string &in asType)</code>. asType can be OnDeath or OnAutoDisabled | | CallbackFunc || String || || A callback function used for a number of events. Syntax: <code>void Func(string &in asEntityName, string &in asType)</code>. asType can be OnDeath or OnAutoDisabled | ||
|- | |- | ||
| Line 11: | Line 19: | ||
| HallucinationEndDist || Float || 3 || The distance at which the hallucination disappears | | HallucinationEndDist || Float || 3 || The distance at which the hallucination disappears | ||
|- | |- | ||
| + | {{#ifeq:{{{1|}}}|amfp| | ||
| + | {{!}} Blind {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the enemy cannot see. | ||
| + | {{!}}- | ||
| + | {{!}} Deaf {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the enemy cannot hear. | ||
| + | {{!}}- | ||
| + | {{!}} Invisible {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy invisible. | ||
| + | {{!}}- | ||
| + | {{!}} Pose {{!}}{{!}} String {{!}}{{!}} biped {{!}}{{!}} The starting pose.<br>Can be "biped" or "quadruped". | ||
| + | {{!}}- | ||
| + | }} | ||
|} | |} | ||
Revision as of 01:38, 13 January 2025
| Name | Type | Default | Description |
|---|---|---|---|
| CallbackFunc | String | A callback function used for a number of events. Syntax: void Func(string &in asEntityName, string &in asType). asType can be OnDeath or OnAutoDisabled
| |
| DisableTriggers | Bool | false | If true, the enemy does not react to any trigger such as seeing or hearing the player. |
| Hallucination | Bool | false | If true, the enemy will disappear when close enough to the player. |
| HallucinationEndDist | Float | 3 | The distance at which the hallucination disappears |