Jump to content
Sign in to follow this  
vengeance1

GameLogic as Waypoint for AI

Recommended Posts

How do I script a GameLogic so I can use it as a Waypoint for a Plane or Boat to got to.

Sorry if I missed the thread but could not find it.

Share this post


Link to post
Share on other sites

In the editor or in a script?

In a script:

WayPoint = "Logic" createVehicleLocal getPos _yourWishedTargetPosition;

_group move getPos WayPoint;

Share this post


Link to post
Share on other sites

Thanks SNKMAN I was thinking Editor in the GameLogic itself, I had the code once but can't find it. :(

Share this post


Link to post
Share on other sites
Why not use markers?

Because I need to write some addtional script in the GameLogic once the vehicle gets there. Like the next waypoint.

Share this post


Link to post
Share on other sites

then you could do it with triggers. Either way name them and do a DOMOVE nameoftrigger.

Share this post


Link to post
Share on other sites
then you could do it with triggers. Either way name them and do a DOMOVE nameoftrigger.

Ok how would I put that in?

I use this for a Marker

this doMove (getMarkerPos "Marker1");

If I use a Trigger I would use???

Edited by vengeance1

Share this post


Link to post
Share on other sites

in onactivation

thislist select 0 move position heliWP1

and name the next trigger(waypoint) heliwp1. Sync all triggers to the veh and should work fine. BIS uses similar for a helo in first to fight mission.

Edited by Ghost

Share this post


Link to post
Share on other sites
then you could do it with triggers. Either way name them and do a DOMOVE nameoftrigger.

dont!

they eat up performance quickly if used multiple times on a map, for nothing in this case !

markers are the best way to go, even better move units to objects, BuildingPos or use isFlatEmpty to find nice terrain spots ;)

Share this post


Link to post
Share on other sites

Ok thanks for the input never did figure out how to use the GameLogic's, I ended up using Markers and Triggers at the marker to DoMove to next Marker and then Mando Heliroute to land on LHD. Works fine not sure that was the best way.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×