Jump to content

Element Key Change


'LinKin

Recommended Posts

Posted

Hello,

I was wondering if there exists the possibility that an element's key gets changed.

For example if you created a team with a script, the team occupies a certain position in memory and it is assigned a key so that it can be accessible (example: userdata:878E812A)

Can this 'userdata:878E812A' change somehow while the script is running? (Note that I will not perform any modification to the team)

Please take into account that I'm saying while the script is running, I'm not asking if it will change after I restart the script (we already know it would change by doing this)

Thanks.

Posted

As far as i know that shouldn't change as it's the element and that will always stay the same, you can put some element into variable and keep using it until it gets destroyed.

Posted

I don't really think that it would change while the script is running, but I cannot be 100% sure. If you want, you can simply test it with a timer like this:

t = createTeam ( "Team Name", 255, 255, 255 )  
setTimer ( outputChatBox, 1000, 0, "Team Data: "..tostring ( t ) ) 

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.
×
×
  • Create New...