CreateCorpse
- Parameters
whichPlayer playerThe owner of the corpse.
unitid integerThe rawcode of the unit for the corpse.
x realThe x-coordinate of the corpse.
y realThe y-coordinate of the corpse.
face realUnit facing in degrees.
- comment
Creates the corpse of a specific unit for a player at the coordinates ( x , y ). The unit will die upon spawning and play their decay animation, therefore they will not necessarily be a corpse immediately after this function call. If the unit corresponding to the rawcode cannot have a corpse, then the returned value is null.
- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
unit- Source code
native CreateCorpse takes player whichPlayer, integer unitid, real x, real y, real face returns unit