Jump to content

Home

Spawning a Waypoint with a script


Seamhainn

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...