PlayIdleWithTarget - Actor
Revision as of 03:35, 22 December 2014 by imported>Terra Nova2 (→Notes: Fixed note to reflect general package use.)
Member of: Actor Script
Plays the idle passed and overrides the actor's target with the given target. If no target is passed, then the idle will use the actor's current target instead.
Syntax
bool Function PlayIdleWithTarget(Idle akIdle, ObjectReference akTarget) native
Parameters
Return Value
True if the idle was successfully loaded and played, false otherwise.
Examples
; Start Hadvar's backstab paired idle against the thief
if Hadvar.PlayIdleWithTarget(Backstab, Thief)
Debug.Trace("Hadvar just backstabbed the thief!")
else
Debug.Trace("Something went wrong")
endIf
Notes
- This function will cause the initiating actor to be stuck in combat alert status and unable to come out of it, no matter what combat based functions is called. To fix this, the package running must have the Weapon drawn flag checked. When checked, the alert status is back to normal when the package ends. See source for more info on how to use this in scenes.