Moving triggers?
Moderator: Core Staff
Moving triggers?
Is it possible to make moving (hurt)triggers?Second how can i make a trigger what if i triggered a hurt trigger activate or deactivate?
Re: Moving triggers?
Moving triggers is easy, just add targetname to the trigger.
Hurt trigger:
Key: targetname
Value: trigger_hurt
Trigger mover:
Key: targetname
Value: trigger_multiple
.GSC file
Hurt trigger:
Key: targetname
Value: trigger_hurt
Trigger mover:
Key: targetname
Value: trigger_multiple
.GSC file
Code: Select all
main()
{
thread movetrig();
}
movetrig()
{
trigger1 = getEnt("trigger_multiple","targetname") //the reason i added this is because of avoid moving all the time; this moves trigger2 only when your player touches the trigger1
trigger2 = getEnt("trigger_hurt","targetname")
trigger1 waittill("trigger") //waits until the trigger1 is triggered
trigger2 moveZ(12, 2, 2, 5);
}
/*
Explanation:
moveZ = move up or down
12 = units to move (+ = up, - = down)
2 = movement acceleration (seconds)
2 = movement decceleration (seconds)
5 = the time it does all the moving
*/
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Moving triggers?
Thanks:D wait other question replies:)
Re: Moving triggers?
I wait answears for cod 1 !
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Moving triggers?
Ok in vcod1 you need to
you need to enable the linkto and then just link your trig to a brush and move the brush the trigger will be moved with the brush
Code: Select all
trig = getEnt("blabla", "targetname");
brush = getEnt("djklsdjfk", "targetname");
trig enableLinkTo();
trig linkTo(brush);
brush moveZ(...);
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
Who is online
Users browsing this forum: No registered users and 1 guest