Page 1 of 1
Triggers
Posted: July 7th, 2007, 6:03 am
by YaNo
K i stumbled across something
i got a trigger and i want to know the coords of it trough script, how to do that?
like, there's a trigger on 100, 100, 100 and i want a script that tells me the coords

is that possible?
if that works i maybe make a cool tutorial where its used.
Posted: July 7th, 2007, 9:47 am
by Lethal323
I dont know quite understand what ur saying, Why would you need to know why there is a trigger on 100,100,100?
i mean if you wanted to tell everybody there is a trigger there just so u can you could say
Code: Select all
iprintlnbold ("There is a trigger on the coordinates X:100 Y:100 Z:100");
But I dont think thats quite what your looking for, Triggers cant move... You cant make them move so i dont see why you would need to know where the coordinates of that trigger are... If you need a trigger so that it can be turned on a off then use this...
For on:
Code: Select all
trig thread maps\mp\_utility::triggerOn();
For off:
Code: Select all
trig thread maps\mp\_utility::triggerOff();
Hope this helps a little bit, If not try to add more detail or put what you mean in another way... I dont quite under stand what u mean...
Posted: July 7th, 2007, 1:29 pm
by Drofder2004
entity.origin is the origin of the entity (in this case trigger.origin). Although this will more than likely be (0,0,0) as its origin)
And for the record, triggers can move. There is a thread about it somewhere.
Posted: July 7th, 2007, 2:04 pm
by Lethal323
WoW, i have always heard that triggers could not move... I still couldnt think of a use for knowing the coordinates of a trigger, but hey, your not me

Posted: July 7th, 2007, 5:23 pm
by Nightmare
What he is trying to do is add a couple lines into the gsc which will tell him where the triggers are. Whats the reason for this? To find secrets hidden in jump maps. Seems like a clever approach but I doubt it will work.
Posted: July 7th, 2007, 5:41 pm
by YaNo
Nightmare wrote:What he is trying to do is add a couple lines into the gsc which will tell him where the triggers are. Whats the reason for this? To find secrets hidden in jump maps. Seems like a clever approach but I doubt it will work.
i knew you woud say that

but i ALSO need it to for debug of my maps.
i'm currently a little stuck

the script look like a first-week-scripter

the only thing it wont do is print the coords :'(
Posted: July 7th, 2007, 9:16 pm
by Drofder2004
I dont think coordinates of triggers will show up...
There is something called a BSP editor, but:
a) I'm not linking it (it can be used in the wrong way)
b) I'm not helping with using it
I have used it to find lots of secrets in maps, but I'm not saying how

Posted: July 7th, 2007, 9:29 pm
by Pedsdude
Drofder2004 wrote:I have used it to find lots of secrets in maps, but I'm not saying how

I know your secrets

Posted: July 8th, 2007, 3:02 am
by YaNo
woohoo thnx drofder

i now can open bsp's ! ty so much ^^
Posted: July 8th, 2007, 8:29 am
by Drofder2004
Its not the secret that you need to know, its the technique in which to find the secret

Posted: July 17th, 2007, 12:23 am
by Deadly
hey just wondering even though you said you were not linking the site i would do anything for that because sometimes when im far into a map my bsp doesnt load and i get an error on radiant. and what bad could it do¿
Posted: July 17th, 2007, 1:00 pm
by Drofder2004
Deadly wrote:hey just wondering even though you said you were not linking the site i would do anything for that because sometimes when im far into a map my bsp doesnt load and i get an error on radiant. and what bad could it do¿
If your bsp does not load in CoD then this will not help. There is very little it can do to fix anything.
If you having trouble in Radiant with a .map file there is no way this can help because it doesnt deal with radiant or .map.
Posted: July 17th, 2007, 9:51 pm
by Deadly
ok. i only had trouble with 1 bsp but it was and ok map. but i will find the editor and i will do something bad with it! (but first i must figure out what bad it can do.) just kidding.