29 lines
939 B
Plaintext
29 lines
939 B
Plaintext
// rh_ne_victimspwn - Spawn script for Murder Victim
|
|
|
|
#include "x0_i0_position"
|
|
|
|
void fnPlaceGore()
|
|
{ // PURPOSE: place gore
|
|
object oBlood;
|
|
object oMe=OBJECT_SELF;
|
|
object oWP=GetNearestObjectByTag("RH_PLACEABLE_SPAWN2",oMe);
|
|
int nR;
|
|
location lLoc;
|
|
oBlood=CreateObject(OBJECT_TYPE_PLACEABLE,"gore1",GetLocation(oMe));
|
|
oBlood=CreateObject(OBJECT_TYPE_PLACEABLE,"gore14",GetLocation(oWP));
|
|
lLoc=GetStepLeftLocation(oMe);
|
|
oBlood=CreateObject(OBJECT_TYPE_PLACEABLE,"gore11",lLoc);
|
|
lLoc=GetStepRightLocation(oMe);
|
|
oBlood=CreateObject(OBJECT_TYPE_PLACEABLE,"gore6",lLoc);
|
|
} // fnPlaceGore()
|
|
|
|
void main()
|
|
{
|
|
object oMe=OBJECT_SELF;
|
|
object oWP=GetNearestObjectByTag("NPC_SPAWN1_DAY",oMe);
|
|
AssignCommand(oMe,ClearAllActions(TRUE));
|
|
AssignCommand(oMe,ActionJumpToObject(oWP));
|
|
AssignCommand(oMe,ActionPlayAnimation(ANIMATION_LOOPING_DEAD_BACK,1.0,8.5));
|
|
DelayCommand(2.0,fnPlaceGore());
|
|
}
|