Triggers

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Triggers

Post by YaNo » July 7th, 2007, 6:03 am

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 :D
is that possible?

if that works i maybe make a cool tutorial where its used.

Lethal323

Post by Lethal323 » July 7th, 2007, 9:47 am

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...

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 7th, 2007, 1:29 pm

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.
Image
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

Lethal323

Post by Lethal323 » July 7th, 2007, 2:04 pm

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 :)

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » July 7th, 2007, 5:23 pm

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]

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » July 7th, 2007, 5:41 pm

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 :P but i ALSO need it to for debug of my maps.
i'm currently a little stuck :D the script look like a first-week-scripter :)
the only thing it wont do is print the coords :'(

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 7th, 2007, 9:16 pm

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 ;)
Image
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

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » July 7th, 2007, 9:29 pm

Drofder2004 wrote:I have used it to find lots of secrets in maps, but I'm not saying how ;)
I know your secrets ;)
Image
Image

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » July 8th, 2007, 3:02 am

woohoo thnx drofder :P i now can open bsp's ! ty so much ^^

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 8th, 2007, 8:29 am

Its not the secret that you need to know, its the technique in which to find the secret ;)
Image
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

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » July 17th, 2007, 12:23 am

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¿
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 17th, 2007, 1:00 pm

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.
Image
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

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » July 17th, 2007, 9:51 pm

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.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests