unitex CreateUnitEx(int nX, int nY, int nZ, string strScript, string strChasis, string strWeapon0, string strWeapon1, string strWeapon2, string strWeapon3) unitex CreateUnitEx(int nX, int nY, int nZ, string strScript, string strChasis, string strWeapon0, string strWeapon1, string strWeapon2, string strWeapon3, int nShieldUpdateNum)
Scope: public
Parameters
nX - x-coordinate
nY - y-coordinate
nZ - 0 - ground/1 -tunnel
strScripts - uniot script
strChassis - chassis
strWeapon0 - cannon 0
strWeapon1 - cannon 1 (if there is more than one cannon slot)
strWeapon2 - extra cannon possitioned on cannon 0 (if there is a slot)
strWeapon3 - extra cannon possitioned on cannon 1 (if there is a slot)
nShieldUpdateNr - Shield update -1(no shield),0,1,2
Return values
unitex pointer
Description
Creates unit in specified location
See also
CreateUnit, Chasis and weapon identifiers