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.

Spawning a Waypoint with a script

Page: 1 of 1
 Seamhainn
02-02-2008, 6:33 AM
#1
Hello!

I got this script from DS to spawn a Waypoint (with the proper Tag and coordinates, of course). But when I try to compile it I get an error message. I assume the declaration of Location and/or Vector is missing.

Any help is highly appreciated!


void main()
{

CreateObject(OBJECT_TYPE_WAYPOINT, "WP_TAG", Location(Vector(x, y, x), 0.0));

}


Thanks!
 Darth InSidious
02-02-2008, 7:39 AM
#2
The third letter in (Vector() should be 'z'. But you haven't actually filled in any data - that's a blank function. Personally, I'd recommend adapting a script for spawning a character.
 Stream
02-02-2008, 8:17 AM
#3
Yeah sorry about that x instead of a z, my bad - if you replace the x, y, z(x) party with the whereami output that should compile fine.

void main()
{

CreateObject(OBJECT_TYPE_WAYPOINT, "WP_TAG", Location(Vector(10.0, 1.4, -5.3), 0.0));

}

--Stream
Page: 1 of 1