Triggers
Moderator: Core Staff
Triggers
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.
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.
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
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:
For off:
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...
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();
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...
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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.
And for the record, triggers can move. There is a thread about it somewhere.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
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.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
i knew you woud say that but i ALSO need it to for debug of my maps.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'm currently a little stuck the script look like a first-week-scripter
the only thing it wont do is print the coords :'(
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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
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
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
If your bsp does not load in CoD then this will not help. There is very little it can do to fix anything.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 you having trouble in Radiant with a .map file there is no way this can help because it doesnt deal with radiant or .map.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 2 guests