Seamhainn Posted February 2, 2008 Share Posted February 2, 2008 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 More sharing options...
Darth InSidious Posted February 2, 2008 Share Posted February 2, 2008 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. Link to comment Share on other sites More sharing options...
Stream Posted February 2, 2008 Share Posted February 2, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.