TroyT

Acquire Persistent Vehicle account_uid

5 posts in this topic

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

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

 

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

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
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.