Scriptname AASSActivatorScript extends ObjectReferenceImport DebugActor Property PlayerRef AutoIdle Property AASSAnim AutoIdle Property IdleStop_Loose Autoint IdlePlayingEVENT OnInit() RegisterForUpdate(0.1)EndEVENTEVENT OnUpdate()if ( IdlePlaying == 1 ) Notification("Controls Disabled") DisablePlayerControls() PlayerRef.PlayIdle(AASSAnim) IdlePlaying = 2elseif ( IdlePlaying >= 2) && ( IdlePlaying < 40) IdlePlaying += 1elseif ( IdlePlaying >= 40) PlayerRef.PlayIdle(IdleStop_Loose) EnablePlayerControls() IdlePlaying = 0endifEndEVENTEVENT OnActivate(ObjectReference ActionRef) if ( IdlePlaying == 0 ) && ( ActionRef == PlayerRef ) IdlePlaying = 1 endifEndEVENTIt usually works perfectly on the very first try : Player in 3rd person view activates = Controls disabled & Player plays anim = Anim ends after a while, Player gets controls.
But then the others activations lead to chaos :
- Nothing happens on activation, or after a very long time, and/or
- Anim begins, ends nearly immediatly, Player can move(!), Anim continues to play randomly, Player has controls randomly
- If Player is supposed to play another Anim, he plays the one of this script
- Activation in 1st person view : Player is TELEPORTED to the door HeadMarker of the last entered Interior Cell ??!
Could someone explain me what the hell is happening ?
