Hey there!
This must be a really noob question. Anyway, I want to store the initial position of an object
This is what I have before the function update:
static var iniposx :float;
static var iniposy :float;
static var iniposz :float;
iniposx = transform.position.X;
iniposy = transform.position.Y;
iniposz = transform.position.Z;
static function initialpos(iniposx, iniposy, iniposz) : Vector3
I can see with the console that initialpos.magnitude is always changing.