mirror of
https://github.com/Tribes2-SCP/AssetCompat.git
synced 2026-07-16 05:04:33 +00:00
Add %player.setArmor in a script compat file
This commit is contained in:
parent
1f29bad242
commit
11ed6e55d7
1 changed files with 12 additions and 0 deletions
12
scripts/playerFunctions.cs
Normal file
12
scripts/playerFunctions.cs
Normal 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");
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue