TroyT 83 Report post Posted May 20, 2018 I'm dipping my toes into some code (semi-reluctantly) and want to see if something is even possible before I get too over my head. Is it possible to populate a local variable with the account_uid of a vehicle that a player is interacting with? The script in question uses a CfgInteractionMenus action to perform a task. I want to have the script check to see if a vehicle has a specific account_uid assigned and either complete the task or throw an exception. The specific account_uid that is being checked for will always be the same. Any help or guidance here would be immeasurably appreciated. Share this post Link to post Share on other sites
GGWOLF 41 Report post Posted May 22, 2018 It might be of help to you to have a look into how AVS tracks persistent vehicles as it gives them a database ID which by way of a tag which acts as the uid in the database. This seems similar to what you're asking. WOLF 1 Share this post Link to post Share on other sites
TroyT 83 Report post Posted May 22, 2018 Not exactly, but it might help me see how to access the uid. All I really need to do is acquire the account_uid for the vehicle that a player is interacting with. The account_uid for that vehicle will then be entered into a variable in the script. Thanks for the reply. Share this post Link to post Share on other sites
StokesMagee 871 Report post Posted May 22, 2018 @TroyT On the server you can get the owner UID via: private _ownerUID = _vehicle getVariable ["ExileOwnerUID", ""]; 2 Share this post Link to post Share on other sites
TroyT 83 Report post Posted May 23, 2018 Dooooooood. That did it. You've made many people happy, and I greatly appreciate it. Share this post Link to post Share on other sites