Add %player.setArmor in a script compat file

This commit is contained in:
Robert MacGregor 2015-11-22 00:34:40 -05:00
parent 1f29bad242
commit 11ed6e55d7

View file

@ -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");
}