Topic: Follow behavior values
Hi, i'm trying to tweak the X/Y/Z values of the follow behavior but :
with getBehaviorVariable(Cam, 0, "offset") -> nil
with setBehaviorVariable -> it display a random table in the console
any tips on this ?
You are not logged in. Please login or register.
Hi, i'm trying to tweak the X/Y/Z values of the follow behavior but :
with getBehaviorVariable(Cam, 0, "offset") -> nil
with setBehaviorVariable -> it display a random table in the console
any tips on this ?
getBehaviorVariable(Cam, 0, "offset") is good, it is used like that :
offset = getBehaviorVariable(Cam, 0, "offset")
x = offset[1]
y = offset[2]
z = offset[3]
to set the variable it should be :
setBehaviorVariable(Cam, 0, "offset", {x, y, z})
Right, the getBehaviorVariable values are correct, however i'm unable to change the values =x
Gonna make more tests tomorrow, maybe i just forgot something
mh.. I think I found an error in the code, when sending tables,
that explain why it works with boolean and string but not there...
I submitted a fix on svn.
Great, thanks
unfortunately i can't compile so i must wait for the next version
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.