Hello,
Does any1 know if its possible to assign to an hitted object (ray.getHitObject()) an property??? (HitObject.setProperty)
thx for all answers!!!
Hello,
Does any1 know if its possible to assign to an hitted object (ray.getHitObject()) an property??? (HitObject.setProperty)
thx for all answers!!!
ray.getHitObject().nameOfProperty = blah
blah, can not store an object, only basic data types
-Luke
Has anyone ever had the problem that when they do this the first value is permanent and unchangeable?
o.gethitobject().party=9
o.gethitobject.party=9876
r=o.gethitobject.party
and r now = 9 not 9876… Only happens if the object didn’t have the property at game start.
That should be:
o.gethitobject().party=9
o.gethitobject().party=9876
r=o.gethitobject().party
You left out the parentheses.