Message when entering Triggers
by Tyler \\\"Spaceomega\\\" · in Technical Issues · 11/25/2005 (12:49 pm) · 3 replies
Well, i made some triggers, and the triggers work, but i would like to make it so that when you enter it, it says soemthing to the server....ill use my "huge" code for example.
Where would i add what?
datablock TriggerData(HugeTrigger)
{
// The period is value is used to control how often the console
// onTriggerTick callback is called while there are any objects
// in the trigger. The default value is 100 MS.
tickPeriodMS = 100;
};
function HugeTrigger::onLeaveTrigger(%this,%trigger,%obj)
{
}
function HugeTrigger::onEnterTrigger(%this,%trigger,%obj)
{
//This Trigger just makes your scale 5 5 5
%obj.setScale("5 5 5");
}Where would i add what?
#2
12/06/2005 (7:08 am)
I got it, but thanks
#3
I have a question at that point, I am confused ;I am aiming l ıke this: when the car meet wıth road sign,trigger will bring my company webpage on the left side on the wındow. How can I do this? Any help would be pleasure for me....
Thanks for your attentıon!
07/06/2009 (6:22 am)
Hey guys,I have a question at that point, I am confused ;I am aiming l ıke this: when the car meet wıth road sign,trigger will bring my company webpage on the left side on the wındow. How can I do this? Any help would be pleasure for me....
Thanks for your attentıon!
Torque Owner Rex
BrokeAss Games
function HugeTrigger::onLeaveTrigger(%this,%trigger,%obj) { echo("An object has left the HugeTrigger under a scale factor of 5"); MessageAll('MsgAdmnForce', "An object has left the HugeTrigger, but has not changed it's size at all!"); } function HugeTrigger::onEnterTrigger(%this,%trigger,%obj) { //This Trigger just makes your scale 5 5 5 %obj.setScale("5 5 5"); echo("An object in the trigger has been scaled by a factor of 5!");//prints to console.log file MessageAll('MsgAdmnForce', "My, my, seems an object has been scaled by a factor of 5, It's HUGE!");//prints to Message HUD }...something like that??