diff --git a/scripts/playerFunctions.cs b/scripts/playerFunctions.cs new file mode 100644 index 0000000..07cc05a --- /dev/null +++ b/scripts/playerFunctions.cs @@ -0,0 +1,12 @@ +//------------------------------------------------------------------------------ +// playerFunctions.cs +// +// Various helper functions that many Tribes 2 scripts expect to exist which +// can be implemented wholly in script. Those that must perform more +// sophisicated engines must be implemented as engine functions. +//------------------------------------------------------------------------------ + +function Player::setArmor(%this, %armor) +{ + %this.setDatablock(%armor @ %this.client.sex + this.%client.race + "Armor"); +}