Sets a custom variable on the current actor.
This is just a key/value pair that gets attached to the actor and can be read by other actors with getVar.
All variables get deleted on game reset.
||string||The name of the variable to set.|
||The value of the variable to set.|
// Indicate that this actor has 5 hitpoints left. Other actors can // query this with getVar. setVar("hp", 5);