View Single Post
Old 04-01-2013, 12:22 AM   #21
arsenalforever
Rookie
 
Join Date: Apr 2012
Posts: 57
I'm still not able to see the Gamorrean. I've tried setting the Mod_OnLoad value to gamspawn as well as gamspawn101.

Final Scripts:

1. gamspawn.nss
Code:
void main()
{
        vector Spawn; 
        Spawn.x = -23.47745f;   
        Spawn.y = 80.85285f;   
        Spawn.z = 12.74702f;   
        float a = 0.99720f;
CreateObject(OBJECT_TYPE_CREATURE, "g_gammorean", Location(Spawn,a));
}
2. gamspawn101.nss

Code:
void main()
{
object oEntering = GetEnteringObject();
object Gamtest = GetObjectByTag("c_ithorian");

if(GetIsPC(oEntering))
{

if(GetIsObjectValid(Gamtest)==FALSE)
{
ExecuteScript("gamspawn",OBJECT_SELF);
}
}
ExecuteScript("k_501_enter",OBJECT_SELF);
}

Last edited by arsenalforever; 04-01-2013 at 12:54 AM.
arsenalforever is offline   you may: quote & reply,