Help on making a trigger to change level
by Michael Allen · in Game Design and Creative Issues · 02/18/2013 (2:02 am) · 1 replies
Hey all,
I'm currently on my first week of studying Torque 3D and I need to make a trigger that changes from one level to another by tomorrow. The code I currently have is in TemplatesFullgamescriptsservertriggers.cs and is as follows:
function loadLevelTrigger::onLeaveTrigger(%this,%trigger,%obj)
{
schedule(100, 0, changeMission);
}
function changeMission()
{
loadMission("levels/Empty Room.mis")
}
The current code I have isn't working, the consol produces a warning message of "changeMission: command unknown"
I'm new to these forums and new to Torque 3D so if anyone needs any more information please feel free to ask. I'd appreciate any help on this request.
I'm currently on my first week of studying Torque 3D and I need to make a trigger that changes from one level to another by tomorrow. The code I currently have is in TemplatesFullgamescriptsservertriggers.cs and is as follows:
function loadLevelTrigger::onLeaveTrigger(%this,%trigger,%obj)
{
schedule(100, 0, changeMission);
}
function changeMission()
{
loadMission("levels/Empty Room.mis")
}
The current code I have isn't working, the consol produces a warning message of "changeMission: command unknown"
I'm new to these forums and new to Torque 3D so if anyone needs any more information please feel free to ask. I'd appreciate any help on this request.
Associate Steve Acaster
[YorkshireRifles.com]
Also read the link displayed when writing a post that says:
As it will give you code tags which makes everything easier to read.