Difference between revisions of "SetRestrained - Actor"
Jump to navigation
Jump to search
imported>MoopusMaximus |
imported>MoopusMaximus |
||
Line 27: | Line 27: | ||
Prisoner.SetRestrained(false) | Prisoner.SetRestrained(false) | ||
</source> | </source> | ||
== Notes == | |||
Restrained Actors can still be moved with functions that invoke movement, such as *KeepOffsetFromActor(). | |||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |
Revision as of 20:46, 21 January 2016
Member of: Actor Script
Flags this actor as restrained or not. Restrained actors will not move from their current position, but will continue to "think" (pick packages, run detection so they could yell alarms) and go into dialogue.
Syntax
Function SetRestrained(bool abRestrained = true) native
Parameters
- abRestrained: Whether to set or clear the actor's restrained status.
- Default: True
Return Value
None.
Examples
; Set Prisoner to restrained
Prisoner.SetRestrained()
; Clear Prisoner's restrained status
Prisoner.SetRestrained(false)
Notes
Restrained Actors can still be moved with functions that invoke movement, such as *KeepOffsetFromActor().