Author Topic: Trigger error now... help?  (Read 2509 times)

Could anyone perhaps explain or have a link on how triggers work?

I know so little, I would like a better understanding for triggers and how they work...

Thanks for reading
« Last Edit: November 07, 2013, 09:59:16 PM by chubaka452 »

Code: [Select]
datablock triggerData(someTriggerData)
{
tickPeriodMS = 100;
};
function someTriggerData::onEnterTrigger(%this, %trigger, %obj)
{
//stuff
}
function someTriggerData::onLeaveTrigger(%this, %trigger, %obj)
{
//stuff
}
function someTriggerData::onTickTrigger(%this, %trigger, %obj)
{
//stuff
}
new trigger(theActualTrigger)
{
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
datablock = someTriggerData;
polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
};
if this is what you were looking for, have fun



well it didnt really explain what they are.. or what they're used for(concept), but ty for trying

triggers are like an invisible box that when a player or object enters or leave it causes some sort of function to occur depending on what you want it to do

Can I ask why you need to use a trigger?




No, :3
Wow. What a jerk : /
If we know what you need them for, we can better explain it or tell you to use something else, if it would better suit your needs.

No, :3
Aight then, we can't explain stuff to you without knowing what the hell you're doing.

Aight then, we can't explain stuff to you without knowing what the hell you're doing.

gosh i was joking :s, I want it to show the persons bl_id or name when someone steps on the brick on the screen (client) ;s

gosh i was joking :s, I want it to show the persons bl_id or name when someone steps on the brick on the screen (client) ;s
use VCE?

onPlayerTouch > Client > centerPrint > "<var:cl:bl_id>"

use VCE?

onPlayerTouch > Client > centerPrint > "<var:cl:bl_id>"

Na, I want to do it script sided so it does it automatically.

...that would be automatic.

...that would be automatic.

he is talking events i dont want events, i want it auto without placing the events on the server manually