Post: [Tutorial] Using triggers
06-03-2012, 04:19 PM #1
KingcreekS
NOTHING IS IMPOSSIBL
(adsbygoogle = window.adsbygoogle || []).push({}); How a trigger work?

A trigger work spawning the model , moving up and playing sounds.

Triggers are used for : 'moving objects', they are used to 'trigger' another entity,prefab,texture and xmodel to 'interact, spawn or hide' when walked though or activate.

----------------

So if you want to do something like a bounce betty you will need to do something lioke this:

    stepOnBetty = spawn( "trigger_radius", betty.origin, 1, 20, 10 );
stepOnBetty waittill( "trigger", i );
self playsound("veh_ac130_sonic_boom");
betty MoveTo(betty.origin +(0,0,70),0.4);


That code will move up the model you want to move

So i hope you enjoy ,
Thanks for reading.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked KingcreekS for this useful post:

xePixTvx
06-04-2012, 03:57 PM #11
Originally posted by 247Yamato View Post
Yes, most brushmodels are from objects such as destructibles or objectives :( You can make an object solid by using those brushmodels and doing the same as how carepackage becomes solid (see _airdrop.gsc)

@TheHellBoy I simplified your examples code:

    //stepOnBetty = spawn( "trigger_radius", betty.origin, 1, 20, 10 );
//stepOnBetty waittill( "trigger", i );
self playsound("veh_ac130_sonic_boom");
betty MoveTo(betty.origin +(0,0,70),0.4);


mmm, I found the tutorial a bit confusing.


yes true, what i don't understand is that no-one that i know of has gotten this to work on CoD4. Only contents works for some reason and im aware that they didn't use colliders for cod4 but there are still brush models stocked in the game.
06-04-2012, 11:49 PM #12
Originally posted by ViiPeR View Post
yes true, what i don't understand is that no-one that i know of has gotten this to work on CoD4. Only contents works for some reason and im aware that they didn't use colliders for cod4 but there are still brush models stocked in the game.
Nahh never gona be possible :(
06-06-2012, 03:43 AM #13
Thanks or the tut

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo