Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Ai script conditions
From HalfLife 2 Knowledge Base
Contents |
[edit]
ai_script_conditions
Half-Life 2 Point Entity
[edit]
description
AI Script Conditions
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Actor Actor(target_destination)
NPC Target - Start Disabled StartDisabled(choices)
1- 0 - No
- 1 - Yes
- Minimum state MinimumState(choices)
1- 1 - Idle
- 2 - Alert
- 3 - Combat
- Maximum state MaximumState(choices)
3- 1 - Idle
- 2 - Alert
- 3 - Combat
- Actor is running a script? ScriptStatus(choices)
- 0 - No
- 1 - Yes
- 2 - Don't care
- Required Time RequiredTime(float) - default: 0
Duration of time that all the conditions must be true - Minimum time out MinTimeout(float) - default: 0
Minimum time before OnConditionsTimeout is fired. 0 = never expire - Maximum time out MaxTimeout(float) - default: 0
Maximum time before OnConditionsTimeout is fired. 0 = ignore - Actor Sees Player ActorSeePlayer(choices)
2- 0 - No
- 1 - Yes
- 2 - Don't care
- Player distance PlayerActorProximity(float) - default: 0
The distance the player must/must not be to the actor. Negative values for NOT, 0 for ignore. - Player FOV for Actor PlayerActorFOV(float) - default: 360
Specify angle of view cone in degrees. Negative value = NOT - Play FOV to Actor is a true view cone PlayerActorFOVTrueCone(choices) - default: Player's view cone is evaluated as a true cone, not pie slice
- 0 - No - Tall pie slice
- 1 - Yes - True view cone
- Player has LOS to Actor PlayerActorLOS(choices) - default: Checks that the player has clear Line of Sight to the Actor
2- 0 - No
- 1 - Yes
- 2 - Don't care
- Target (Optional) target(target_destination)
Optional entity to include in conditions - Actor Sees Target ActorSeeTarget(choices)
2- 0 - No
- 1 - Yes
- 2 - Don't care
- Target distance ActorTargetProximity(float) - default: 0
The distance the actor must/must not be to the Target. Negative values for NOT, 0 for ignore. - Player distance from Target PlayerTargetProximity(float) - default: 0
The distance the player must/must not be to the Target. Negative values for NOT, 0 for ignore. - Player FOV for Target PlayerTargetFOV(float) - default: 360
Specify angle of view cone in degrees. Negative value = NOT - Play FOV to Target is a true view cone PlayerTargetFOVTrueCone(choices) - default: Player's view cone is evaluated as a true cone, not pie slice
- 0 - No - Tall pie slice
- 1 - Yes - True view cone
- Player has LOS to Target PlayerTargetLOS(choices) - default: Checks that the player has clear Line of Sight to the Target
2- 0 - No
- 1 - Yes
- 2 - Don't care
- Player blocking Actor PlayerBlockingActor(choices) - default: Checks that the player is blocking the Actor's path
2- 0 - No
- 1 - Yes
- 2 - Don't care
[edit]
spawn flags
none.
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - Enable(void)
Enable this entity. - Disable(void)
Disable this entity.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input. - OnConditionsSatisfied(void)
Fires when AI conditions satisfied. - OnConditionsTimeout(void)
Fires when AI conditions timed out.
[edit]
related tutorials
Submit your tutorial for ai_script_conditions

