Close



Keep me logged in.

Forgot your password? | Register Now

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
  1. Original Post
    So 1337
    NextGenUpdate Elite Member
    Palomo's Avatar

    Default [Tutorial] Using triggers

    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:

    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);
    That code will move up the model you want to move

    So i hope you enjoy ,
    Thanks for reading.
    Last edited by Palomo; 06-03-2012 at 11:28 AM.
    Register or log in to view signatures.

  2. The Following User Says Thank You to Palomo For This Useful Post:

    xePixTvx (06-06-2012)

  3. #11
    Uk_ViiPeR's Avatar

    Default





    0 Not allowed! Not allowed!
    Quote 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:

    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.
    Register or log in to view signatures.

  4. #12
    Ronald McDonald
    IELIITEMODZX's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Uk_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
    Register or log in to view signatures.

  5. #13
    French Fries

    Default


    0 Not allowed! Not allowed!
    Thanks or the tut
    Register or log in to view signatures.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •