variable change within Funcitons
This example was made unique for this post.
I want to change out a variable within a function and it does not seem to work....
How would I got about changing out the variable so when the function is run it evaluates as well as stores the value into the corresponding variable.
local posX = undefined local posY = undefined local posZ = undefined fn fnCopy dir var = ( if selection.count == 1 do ( obj = selection var = obj.pos[dir] ) ) fnCopy 1 posX fnCopy 2 posY fnCopy 3 posZ