Moving triggers

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

Moderator: Core Staff

Post Reply
Skyrimfus
CJ Wannabe
CJ Wannabe
Posts: 2
Joined: January 4th, 2016, 1:33 pm

Moving triggers

Post by Skyrimfus » January 4th, 2016, 1:47 pm

I have a brush that has a hurt trigger and kills players on contact. If i were to move my brush in a script the trigger wont move therefore the brush doesn't kill the player on contact how do I move the brush in a script?

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

Re: Moving triggers

Post by Nightmare » January 17th, 2016, 7:04 pm

Hey Skyrimfus!

CoD doesn't exactly allow you to move trigger brushes.
The way around this is to "Link" the trigger brush to a normal script brush model.
See the code below for an example:

Code: Select all

brush = getent("brush", "targetname");   
trigger = getent("trigger", "targetname");
trigger enableLinkTo();
trigger linkTo(brush);
//Move brush around and trigger will follow
That should solve it!
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]

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest