View Full Version : Can't compile a spawn utc script!!
01-21-2009, 02:23 PM
My script compiler lists errors in the "r" variable and poor definition in Parameter 1(whatever that means) of "location"
I am trying to spawn a modified version of "c_iriaz.utc"
01-21-2009, 02:28 PM
Could you post the script so we can see what is wrong with it?
- Star Admiral
01-22-2009, 03:05 AM
I guess that means where you are using the Location() function there is a problem in parameter 1. Which is the first thing that goes in your brackets ;)
I'd just suggest sticking this in your script.
// Information from whereami cheat/armband
float x = 0.0; // Change this to your x value.
float y = 0.0; // Your y value.
float z = 0.0; // Your x value, though I think it sends it to the walkmesh anyway but I'd be safe than sorry ;)
float fOrientation = 0.0; // An angle 0-360 to face.
vector vSpawn = Vector(x, y, z);
object oIriazMutantThing = CreateObject(OBJECT_TYPE_CREATURE, "FileName", Location(vSpawn, fOrientation));
As your file name, I wouldn't use "c_iriaz" because it will override that file, and that might mess up any mods using that file; Try something like "rep_iriaz".
EDIT: If your trying to spawn the thing in different circumstances then you will need to show us so we can do some debugging :)
vBulletin®, Copyright ©2000-2013, Jelsoft Enterprises Ltd.