View Single Post
Old 03-31-2013, 02:04 AM   #16
Fair Strides
@Fair Strides 2
Witty Programmer
Fair Strides 2's Avatar
Status: Moderator
Join Date: Jan 2012
Location: Oregon, United States
Posts: 756
Current Game: Master of Orion 2
Originally Posted by arsenalforever View Post
I showed zbyl2 your script and this is what he had to say:

Here is a list of the scripts I have currently (I'll make the conversation scripts later. I just want to see if the Gammorean is spawning correctly):

1. Gamspawn101.nss

void main()
object oEntering = GetEnteringObject();
object Gamtest = GetObjectByTag("g_gammorean01");


2. gamspawn.nss:

void main()
        vector Spawn; 
        Spawn.x = 24.0;   
        Spawn.y = 34.0;   
        Spawn.z = 65.0;   
CreateObject(OBJECT_TYPE_CREATURE, "g_gammorean01", Location(Spawn,0.0));
ExecuteScript("k_501_enter", OBJECT_SELF);
The OnEnter value for Iziz Airport was k_501_enter but why do I need to execute k_501_enter at the end of both the scripts?
Are the above two scripts enough for me to be able to see the Gammorean in the Iziz Spaceport?

That ExecuteScript() part in the second one isn't necessary, sorry about that.

Those two scripts should be enough, but there are two things to point out:

1. Each of the numbers for the spawn vector and the float in the location have to have an "f" on the end, like "0.0f". Otherwise the compiler might throw an error, and the game might not execute it correctly.

2. Did you get the coordinates from the game, or are these a guess?

P.S: As to zybl2's comment, I don't have a problem with it. I was going to tell you about the triggers, but you were focused on testing it in-game and the triggers aren't one of the gff file types I'm particularly familiar with...

All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.7 is LIVE!!! Check it out here.
Fair Strides 2 is offline   you may: quote & reply,