16 lines
355 B
Plaintext
16 lines
355 B
Plaintext
|
/**
|
||
|
death_leavebody
|
||
|
|
||
|
OnDeath: Create some blood
|
||
|
|
||
|
J.D. Robertson, 2002
|
||
|
*/
|
||
|
void main()
|
||
|
{
|
||
|
// Create blood
|
||
|
object blood = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_bloodstain", GetLocation(OBJECT_SELF));
|
||
|
|
||
|
// Change the facing of the blood, so every puddle looks different
|
||
|
AssignCommand(blood, SetFacing(IntToFloat(Random(360))));
|
||
|
}
|