TheThumper Posted June 30, 2018 Posted June 30, 2018 Hello All, Looking for a bit of help in understanding how to assign routes/waypoints for clients. I am attempting to dynamically spawn a unit, get it's coordinates, and then direct the client aircraft via it's waypoint system to the spawned unit. I have tried this: playerGroup:RouteAirTo (enemyGround:GetCoordinate(), POINT_VEC3.RoutePointAltType.BARO, POINT_VEC3.RoutePointType.TurningPoint, POINT_VEC3.RoutePointAction.TurningPoint, 450, 5 ) and this: local attackTask = playerGroup:TaskAttackGroup( enemyGround ) playerGroup:PushTask(attackTask, 1) and finally this: attackCoord = enemyGround:GetCoordinate() attackWaypoint = attackCoord:WaypointAirFlyOverPoint( COORDINATE.WaypointAltType.BARO, 333 ) playerGroup:Route( { attackWaypoint }, 1 ) Jumping into an A-10C client and spawning the enemy unit (via Radio Menu) results in no new waypoints. Doing the above with AI units worked. Is this possible? If so, any guidance? All input welcome! thanks, ~Thump. Computer Specs: i7-6700K@4.00GHz, 32GB, 850 EVO 1TB, GTX 1080 Ti, Samsung Odyssey VR [sIGPIC][/sIGPIC]
Grimes Posted June 30, 2018 Posted June 30, 2018 Client's cannot be modified by the scripting engine. This includes flight plan, routes, callsigns, location, etc. Best you can do is give them the information to create a new route on their own. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
TheThumper Posted July 1, 2018 Author Posted July 1, 2018 Afraid that might be the answer. Thanks for the confirmation. ~Thump. Computer Specs: i7-6700K@4.00GHz, 32GB, 850 EVO 1TB, GTX 1080 Ti, Samsung Odyssey VR [sIGPIC][/sIGPIC]
Recommended Posts