Jump to content
Sign in to follow this  
Scoggs

Need help on a couple things please

Recommended Posts

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

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

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

thank you very much guys!!! Still learning scripting, and I really appreciate the help!

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×