Results 1 to 7 of 7

Thread: Need help on a couple things please

  1. #1

    Need help on a couple things please

    I was hoping I could get help on two things.

    1. How can i have a group i put into a transport vehicle(using moveInCargo) get out when units around them/ they take fire.

    2. I have an idea for a joke trigger but no idea how to implement it. I want to have a goat sitting next to the start area and if it is shot make the player who shot it teleport up 2000ft.

    Thanks for any help!

  2. #2
    Well for the goat a simple eventhandler would do the job.

    Place it in the Goats init box.

    PHP Code:
    this addEventHandler ["killed",{killer = ( _this select 1) ;killer setpos [getpos killer select 0,getpos killer select 1,(getpos killer select 2)+2000];}] 

  3. #3
    Master Gunnery Sergeant twirly's Avatar
    Join Date
    Sep 13 2010
    Location
    Gods Own (NZ)
    Posts
    1,302
    Was itchin' to answer that but was too busy!

    For a bit of added fun...try this...

    PHP Code:
    this addEventHandler ["killed",{killer = ( _this select 1) ;killer setvelocity [0,0,300];}] 

    "Learn by doing!" - Quoted from a post by Imutep

    OUTERRA - OUTERRA - OUTERRA - OUTERRA - BLOWMIND!

  4. #4
    Sergeant
    Join Date
    Jun 4 2012
    Location
    USA
    Posts
    110
    Author of the Thread
    thank you very much guys!!! Still learning scripting, and I really appreciate the help!

  5. #5
    Sergeant
    Join Date
    Jun 4 2012
    Location
    USA
    Posts
    110
    Author of the Thread
    Hate to double post, but the goat doesn't work on multiplayer, only on single.

  6. #6
    Do you want to give this a try, I'm no MP scripter so I'm guessing.


    PHP Code:
    this addMPEventHandler ["MPKilled", {killer = ( _this select 1) ;killer setvelocity [0,0,300];}] 

  7. #7
    Sergeant
    Join Date
    Jun 4 2012
    Location
    USA
    Posts
    110
    Author of the Thread
    yup worked perfectly, thank you!

Similar Threads

  1. Help with a couple of things
    By keimosabe in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 3
    Last Post: Oct 29 2009, 15:05
  2. A couple of things that I need to know
    By POTS in forum ARMA 2 & OA - GENERAL
    Replies: 8
    Last Post: Jun 10 2009, 22:13
  3. Help on a couple of things please
    By MeinHerzBrennt in forum GENERAL
    Replies: 6
    Last Post: Jun 6 2006, 11:19
  4. Help on a couple of things please
    By MeinHerzBrennt in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 6
    Last Post: Jun 6 2006, 11:19
  5. Looking for a couple of things
    By D.murphy man in forum ADDONS & MODS: DISCUSSION
    Replies: 3
    Last Post: May 18 2003, 11:09

Posting Permissions

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