fast questions about engine - clickable waypoints

fast questions about engine - clickable waypoints

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
velteyn
Posts: 40
Joined: 25 Jan 2012, 10:53

fast questions about engine - clickable waypoints

Post by velteyn »

Hi all !! I passed hours searching end searching.. cannot find where , on engine, shift+mouseclick units commands are queued ? Which cpp file handles that behavior ?

Can I add a clickable 3D and solid/visual waypoint via c++ according to you ?
I need to add orders to be executed by unit from start to wp , then form that one to second wp other orders.

example:

start to WP 1 hold fire , move x,y
WP to WP 2 fire at will , stop moving


I need then a widget / menu that can handle all orders between wps
Thank you :mrgreen:
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: fast questions about engine - clickable waypoints

Post by SinbadEV »

velteyn wrote:Hi all !! I passed hours searching end searching.. cannot find where , on engine, shift+mouseclick units commands are queued ? Which cpp file handles that behavior ?

Can I add a clickable 3D and solid/visual waypoint via c++ according to you ?
I need to add orders to be executed by unit from start to wp , then form that one to second wp other orders.

example:

start to WP 1 hold fire , move x,y
WP to WP 2 fire at will , stop moving


I need then a widget / menu that can handle all orders between wps
Thank you :mrgreen:
You are looking in the wrong place, check for Lua hooks to find waypoints, draw 3d fiddly bits on them and trap mouse clicks... there have been a few examples of Lua widgets/gadgets that do stuff like this but I can't think of any off the top of my head (mostly because I don't actually use Spring anymore, I just hang around and confuse people in the Forums)
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: fast questions about engine - clickable waypoints

Post by knorke »

http://widgets.springrts.de/index.php#137 this lua widget script has draggable (~clickable) waypoints.
example:

start to WP 1 hold fire , move x,y
WP to WP 2 fire at will , stop moving
yes, should be possible with a lua script. (Though atm I would not know how to check if a unit reached its waypoint. Is there a callin or must poll its queue/position?)
Post Reply

Return to “Engine”