Game Development Community

Animation and Triggers, a simple question :P

by Kevin Roberts · in Artist Corner · 09/17/2005 (1:51 pm) · 3 replies

Hey,

I've become much more aware of the possible errors I can make when modeling with blender and exporting to dts. Now I have a fully functional model, and the programmer of the game seems to think that these "triggers" will tell him when to play a footstep sound, and when the player is hurt by a punch, etc. I see I can add triggers through the exporter, but I'm completely baffled by what the possible parameters mean.

Value: Can be -30 to +30... yeah, so what does that mean? How can I place it where I want it in the animation?
Time: Can be 0-120. I guess this means how long the trigger stays active, but what is in measured in, seconds? Also, if I have it set to 0, will it still act as a trigger for something like say, a footstep, which shouldn't stay triggered?

Anyway, I guess these questions are best answered by Mr. Urquhart, but I would appreciate help from anyone else who knows about this :P.

-Kevin

#1
09/18/2005 (3:27 am)
I'd really like to know this as well, I to have a complete model except for the footsteps :]
#2
09/24/2005 (5:30 am)
Ok guy's, here's the explanation(for the current version) :

The "Value" is the number, or switch to trigger in the shape code. For example, certain values trigger footstep sounds or footprints.
A negative value means that the switch is turned off. A positive value means that the switch is turned on.

As for time, that tells torque when the trigger should be activated in the sequence. I'm not sure if the value is supposed to be normalized (0..1.0), or represented as a keyframe (0..number of frames).
If you are having problems setting this value, try manually modifying the exporter config (see the Text blocks in blender).
#3
09/24/2005 (7:24 am)
Thank you very much.

The value appears to be normalized (in the python script it said
'name' : "Time ", 'min' : 0.0, 'max' : 120.0,
), so people using triggers just have to do some arithmetic with the number of frames and 120 to see where they want to put the trigger.

I'll experiment with the triggers, thanks a lot.

-Kevin