if i change
local selUnitsTbl = sprGetSelectedUnits()
to
local selUnitsTbl = GetTeamUnits(Spring.GetMyTeamID)
do i can drag waypoint with out selecting units?
BA Waypoint Dragger
Moderator: Moderators
Re: BA Waypoint Dragger
Broker wrote:if i change
local selUnitsTbl = sprGetSelectedUnits()
to
local selUnitsTbl = GetTeamUnits(Spring.GetMyTeamID)
do i can drag waypoint with out selecting units?
Help plz )))))
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: BA Waypoint Dragger
Try it and see?
Re: BA Waypoint Dragger
It is LIVE))))))Forboding Angel wrote:Try it and see?
now you can drag waypoint with out selection unit before.
- Attachments
-
- unit_waypoint_dragger_2.lua
- (10.44 KiB) Downloaded 7 times
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: BA Waypoint Dragger
edit: Posted onto wrong thread, ops.
Re: BA Waypoint Dragger
I think this is the answer about the Factory and destination point.Silentwings wrote:edit: Posted onto wrong thread, ops.
I added a condition unitDefID.isFactory == false. it works.