Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Can't compile a spawn utc script!!

Page: 1 of 1
 rep-patriot101
01-21-2009, 2:23 PM
#1
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"
 Star Admiral
01-21-2009, 2:28 PM
#2
Could you post the script so we can see what is wrong with it?

- Star Admiral
 glovemaster
01-22-2009, 3:05 AM
#3
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 :)
Page: 1 of 1