Game Development Community

Help with using video with triggers

by Todd · in Torque Game Engine · 03/03/2008 (6:31 am) · 2 replies

I hope some one can help or point me in the right direction. I am looking for a way while in the game if some one enters a trigger area it will start a video. I am thinking it's onEnterTrigger but I don't know how to set the datablock up to play a different video depending on which trigger is active. Thanks for any help you can give.

Todd

#1
03/03/2008 (8:37 pm)
Here is what you can do for a trigger - Go to world editor, create mod, I think it's under system you can create a trigger, it will ask for a datablock and you can assign it whatever you named the datablock.

datablock TriggerData(trigger_name_here)
{
tickPeriodMS = 100;
};

function trigger_name_here::onEnterTrigger(%this,%trigger,%obj)
{
}
#2
03/04/2008 (5:47 am)
Thanks Steve for the help, I will be working on this today and will post back what I come up with.

Todd