Initial commit
Initial commit [v9.7]
This commit is contained in:
27
_module/nss/walk_away_rnrsgt.nss
Normal file
27
_module/nss/walk_away_rnrsgt.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
int nInt;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
oTarget = GetObjectByTag("RannarshGuardSergeant");
|
||||
|
||||
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_RannarshGuardSergeant")));
|
||||
|
||||
// Spawn "rshgrd1".
|
||||
oTarget = GetWaypointByTag("WP_SPn_rnrshgrdst");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "rnrshgrdst", GetLocation(oTarget));
|
||||
|
||||
// Destroy an object (not fully effective until this script ends).
|
||||
DestroyObject(GetObjectByTag("ent_cnv_rnshgrds"));
|
||||
|
||||
oTarget = GetObjectByTag("RannarshGuardSergeant");
|
||||
nInt = GetObjectType(oTarget);
|
||||
oTarget = GetObjectByTag("RannarshGuardSergeant");
|
||||
DestroyObject(oTarget, 3.0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user