Forum Jump :

Author Message

Opit  



Posts: 2
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2014-03-22 19:34        
     
hey
how am i able do get the state of a bar gate and use it in a script??
i tried animationState,animationPhase but i am not sure if this works!



Modedit:
All caps part with extra additional boring exclamation marks removed.
If you seek attention to your thread you can always count on me.

This post was edited by Foxhound (2014-03-22 21:10, ago)


Author Message


Posts: 1515
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2014-03-22 21:13        
     
Animationstate returns the characters animation not an object.

This will return either 0 or 1 depending if it's closed or open.
If called during the opening and closing it returns the the actual state ie 0.345 ect

hint str (gatename animationphase "Door_1_rot")

you can also use it as a condition


Trigger
cond
gatename animationphase "Door_1_rot" >0
on act
hint "gate is Opening"


Advertisement


Author Message

Opit  



Posts: 2
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2014-03-23 18:32        
     
Thank you I'll give it a try.