ue4-rts icon indicating copy to clipboard operation
ue4-rts copied to clipboard

Waypoints

Open npruehs opened this issue 4 years ago • 2 comments

Allow players to queue orders for actors.

npruehs avatar Jun 21 '20 18:06 npruehs

How can this be combined with Custom orders #122? Example: User can first queue actor move, then actor attack, then actor attack - move order.

First one requires only map location, second one action + actor, third one action + map location

How is a "waypoint" defined then? combination of "action" + "map location/actor"?

How do we check if actor should execute next action (on tick?)

JernejHabjan avatar Oct 11 '20 14:10 JernejHabjan

Yes, exactly. You'd just queue whole order objects, along with all data in it. Then, you'd use an OrderFinished (and OrderCanceled) callback to check whether the queue is empty or not, dequeueing the next order if there is any.

npruehs avatar Oct 13 '20 21:10 npruehs