Jump to content
Sign in to follow this  
fubister

Using a variable from another script

Recommended Posts

Hi, I can't figure out how to use same variable on 2 scripts, I'm guessing it's simple but I think I've tried everything with no luck, here is what I've got.

 

1.sqf

private ["_uid","_otherplayer"];

_uid = getPlayerUID player;
_otherplayer = lbData[3004,lbCurSel (3004)];

//some function

[player,_uid] remoteExecCall ["client_fnc_rec",_otherplayer];

Up till now everything woks as it should including the remote exec for selected player. What I want is to use _uid from 1.sqf in 2.sqf and have not idea how to do that.

 

2.sqf

private ["_uid"];

_uid = ???

//some function

 

Share this post


Link to post
Share on other sites

Awesome, that's what I was missing, problem solved thanks.

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  

×