Page 1 of 1
Moving triggers
Posted: January 4th, 2016, 1:47 pm
by Skyrimfus
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?
Re: Moving triggers
Posted: January 17th, 2016, 7:04 pm
by Nightmare
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!