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!
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.
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