Jump to content
Sign in to follow this  
smookie

Addaction issue :)

Recommended Posts

Hi,

I have a question. Really sorry if this issues was already taken, but it is hard for me to read these 7000 topics smile_o.gif.

To add an action to the player i put

player addaction ["Perform action","script.sqs"]

Can i somehow make the player executing the script by menu action with parameters? (i mean the ones you normally put before the 'exec' word in bracekts [] ) normally addaction ["Perform action",{[var1,var2,soldiername] exec "script.sqs"] doesnt work.

regards,smk

Share this post


Link to post
Share on other sites

You can't add your own values, but three important ones are already present for addaction scripts:

_this select 0: object action is attached to

_this select 1: object that executed the action

_this select 2: index of action

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  

×