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.

Very weird problem with spawn script

Page: 1 of 1
 JebusJM
05-12-2011, 6:35 AM
#1
Hey all,

I'm trying to make a spawn script, but it's always giving me an error for ",". It's probably obvious, but I must be overlooking something. Here it is:

void main()
{
CreateObject = ( OBJECT_TYPE_CREATURE, "belcameron" , Location(Vector(186.27,74.31,12.62), -1,0));
}

Thanks.
 TimBob12
05-12-2011, 7:27 AM
#2
Between the 1 and 0 you have a comma bot a dot
 JebusJM
05-12-2011, 7:30 AM
#3
Tried this and still getting the same error:

void main()
{
CreateObject = ( OBJECT_TYPE_CREATURE, "belcameron" , Location(Vector(186.27,74.31,12.62), -1.0));
}

The error:

Error: syntax error at ","

Thanks for the help so far.
 TimBob12
05-12-2011, 8:23 AM
#4
I cant remember but i dont think you need the comma after the bracket of 3 numbers.
 JebusJM
05-12-2011, 8:42 AM
#5
That didn't do the trick, but I randomly tried compiling it again and it worked. What a strange night I'm having...

Thanks again mate.
Page: 1 of 1