fubister 11 Posted August 19, 2017 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
Lucullus 71 Posted August 19, 2017 Variables look for local and global 1 Share this post Link to post Share on other sites
fubister 11 Posted August 19, 2017 Awesome, that's what I was missing, problem solved thanks. Share this post Link to post Share on other sites