i wish to get the frame number I am on for an action in my rig.
I have ActionActuator on, and a float property “Number” attached to the “frame property” option in the actuator.
i also have a property sensor that is set so that whenever “Number” == a value, it does some other stuff…
but this is no working. i have Debug enabled in game for Number, and it is working. The value of the property is increasing until the animation ends. but, the property sensor never triggers, and using print statements in a python file, it seems the property is always 0, yet the debug shows otherwise in run-time?
Can somebody please help me?
Also, how would I use the python ActionActuator.frame method to do a similar result myself?
Thanks so mcuh, it is much help!
Edit, my logic:
PlayerRig: WeaponObj: PlayerRig:
(set as equals)
sens = cont.sensors[‘PropSens’]
PropSens.value = 74 (with my game logic property set to int)
Then I also have a debug loop…
for i in range(0, 150):
I have tried multiple debugs… as said before, they always return that the value is 0. Same for if I try using.frame method. Please somebody tell me what I must be do wrong.