Jump to content
roderick805

HELP! Passing Sector Module Name and Owner into script.

Recommended Posts

I am a noob and for the life cannot figure this one out. Tried searching for hours.

Share this post


Link to post
Share on other sites

I believe you need to select the passed arguments from inside the sector module's expression box

 

Like this:

[_this select 0, _this select 1] execVM "script.sqf";

 

That should pass the arguments to the executed script

 

You can see the parameters being passed if you make script.sqf something like this:

 

Spoiler

params ["_modulename","_ownername"];

hint format ["%1", _modulename ];
sleep 5;
hint format [" %1",_ownername]

 

Hope that helps!

 

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

×