SetRestrained - Actor
Member of: Actor Script
Flags this actor as restrained or not.
SyntaxEdit
bool Function SetRestrained(bool abRestrained = true) native
ParametersEdit
- abRestrained: Whether to set or clear the actor's restrained status.
- Default: True
Return ValueEdit
True if the restrained state was set. False otherwise (usually cause the actor is dead).
ExamplesEdit
; Set Prisoner to restrained
Prisoner.SetRestrained()
; Clear Prisoner's restrained status
Prisoner.SetRestrained(false)
NotesEdit
You cannot set/clear the restrained state on a dead actor.