• VectorRand():Normalize() problem
    3 replies, posted
Hello i've got next problem: idk why but VectorRand():Normalize() is not returning anything when i am trying to execute that: local particle = self.Emitter:Add("particles/smokey", pos + VectorRand():Normalize() * math.Rand(8, radius + 32)) particle:SetVelocity(VectorRand():Normalize() * math.Rand(8, 32)) and this: VectorRand():Normalize() works for me fine if i use lua_run_cl in console
:Normalize doesn't return anything, it just changes the vector you're running it on. Use :GetNormalized().
Oops i forgot about that.
use :GetNormalized()
Sorry, you need to Log In to post a reply to this thread.