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[1]
var = obj.pos[dir]
)
)
fnCopy 1 posX
fnCopy 2 posY
fnCopy 3 posZ
By JokerMartini · 2011-09-01
Anubis · 2011-09-02