Scoggs 1 Posted June 19, 2012 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! Share this post Link to post Share on other sites
f2k sel 164 Posted June 19, 2012 Well for the goat a simple eventhandler would do the job. Place it in the Goats init box. this addEventHandler ["killed",{killer = ( _this select 1) ;killer setpos [getpos killer select 0,getpos killer select 1,(getpos killer select 2)+2000];}] Share this post Link to post Share on other sites
twirly 11 Posted June 19, 2012 Was itchin' to answer that but was too busy! :) For a bit of added fun...try this... this addEventHandler ["killed",{killer = ( _this select 1) ;killer setvelocity [0,0,300];}] Share this post Link to post Share on other sites
Scoggs 1 Posted June 20, 2012 thank you very much guys!!! Still learning scripting, and I really appreciate the help! Share this post Link to post Share on other sites
Scoggs 1 Posted June 24, 2012 Hate to double post, but the goat doesn't work on multiplayer, only on single. Share this post Link to post Share on other sites
f2k sel 164 Posted June 24, 2012 Do you want to give this a try, I'm no MP scripter so I'm guessing. this addMPEventHandler ["MPKilled", {killer = ( _this select 1) ;killer setvelocity [0,0,300];}] Share this post Link to post Share on other sites
Scoggs 1 Posted June 24, 2012 yup worked perfectly, thank you! Share this post Link to post Share on other sites