Jump to content
Sign in to follow this  
granQ

Who triggerd it?

Recommended Posts

I got a vehicle that have a user action. But for the script i need to know triggerd it, and what the vehicle is. This for you gonna be able to trigger it "outside" the vehicle. basicly, i am trying to make so you can pick up the vehicle (machine gun), so maybe a "nearestobject" should work.. any suggestions?

Share this post


Link to post
Share on other sites
Guest jacobaby

You define the elements you want to be involved in your scripts in the STATEMENT line.

Can you "pick up" a vehicle?? Confused........ confused.gif

TJ

Share this post


Link to post
Share on other sites

Search forums for addaction

The triggered action passes in 3 elements, one of them is who used the action, another is what the action is attached to. If I remember.

Share this post


Link to post
Share on other sites

ahh thanks..didn't know that, did a test with hintformat to see what it had, but didn't see anything usefull

and yes you can with some scripting. You pick up the tripod. The script addweapon "dummytripod" and delete the vehicle. Then when you fire the dummtripod it remove the weapon and create a tripod. Then you have moved a vehicle..

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  

×