User Tools

Site Tools


lgscript:shockaisrv

ShockAISrv

Stun

Stop an AI from moving unless it becomes damaged.

Returns boolean success
Parameter integer ai
Parameter string tags
Parameter string tags
Parameter number seconds

IsStunned

Check if an AI is immobile.

Returns boolean isstun
Parameter integer ai

UnStun

Make an AI move again.

Returns boolean success
Parameter integer ai

Freeze

Make an AI immobile.

Returns boolean success
Parameter integer ai
Parameter number seconds

UnFreeze

Make an AI move again.

Returns boolean success
Parameter integer ai

NotifyEnterTripwire

An AI has triggered a door.

Parameter integer ai
Parameter integer door

NotifyExitTripwire

An AI has vacated the door trigger.

Parameter integer ai
Parameter integer door

ObjectLocked

Check if an object is locked. Ignores keys.

Returns boolean islocked
Parameter integer object

ValidateSpawn

Associate an object with a spawn point.

Parameter integer object
Parameter integer spawnpoint
lgscript/shockaisrv.txt · Last modified: 2009/08/25 22:04 (external edit)