Game Development Community

How to undefine a script variable ?

by Orion Elenzil · in Torque Game Engine · 05/14/2008 (2:48 pm) · 2 replies

Howdy,
does anyone know how to undefine a script variable ?

eg,
i can set $pref::myVariable to "",
but it still saves out when i export("$pref::*").

.. oh, never mind.

i think deleteVariables("$pref::myVariable") would do it.

#1
05/14/2008 (3:06 pm)
==>echo(mAbs(getWord(Orion.getRotationRate(),2)) < 10 ? "ok" : "Woop! Woop! Woop!");
ok



(Just checking ;) )
#2
05/14/2008 (4:14 pm)
Woop! Woop! Woop!