Jump to content
Sign in to follow this  
nullsystems

Passing name into addAction

Recommended Posts

Hi, I don't know best how to describe this but, im looking to pass the name of something into an addaction, for example:

I have an M2 Machinegun Placement

Name: Onions

Init:

MG = this addAction ["Move Onions","script.sqs"]

I also have another M2 Placement

Name: Kitten

Init:

MG2 = this addAction ["Move Kitten","script.sqs"]

Now, I dont want a different script.sqs for each one, I just want to pass its name into the script, like you would with:

[onion] exec "script.sqs"

And then catch it in the script with: _veg = _this select 0;

Sorry, complicated way of explaining. lol

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  

×