Difference between revisions of "@CallGuards"
From SphereWiki
m (→References) |
(→Arguments) |
||
Line 31: | Line 31: | ||
|- | |- | ||
| ARGN2 || O || If set to 1, a new guard will be spawned regardless of whether a nearby guard is available. | | ARGN2 || O || If set to 1, a new guard will be spawned regardless of whether a nearby guard is available. | ||
+ | |- | ||
+ | | ARGN3 || O || (Only used if the trigger is called by a player) If set to 1, SRC will be attacked by the guard(s). | ||
|} | |} | ||
− | |||
==Return Values== | ==Return Values== |
Revision as of 22:07, 7 May 2014
Description
This trigger fires when a character calls for the guards to attack a criminal.
Fires on:
References
The following object references are explicitly available for this trigger:
Name | Description |
ARGO | The guard character who is going to attack the criminal (if one exists in the area). |
I | The character calling for guards. |
REF1 | The criminal who the guards are being called upon. |
SRC | The criminal who the guards are being called upon. |
Arguments
The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:
Argument | In/Out | Description |
ARGN1 | IO | The BASEID of the character to spawn as a guard. |
ARGN2 | O | If set to 1, a new guard will be spawned regardless of whether a nearby guard is available. |
ARGN3 | O | (Only used if the trigger is called by a player) If set to 1, SRC will be attacked by the guard(s). |
Return Values
The following return values are explicitly defined for this trigger:
Return Value | Description |
1 | Prevents the guards from reacting. |