Drop option for allied transport running away with your unit

Drop option for allied transport running away with your unit

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Drop option for allied transport running away with your unit

Post by bobthedinosaur »

In some games this is an issue since allies can forget or mismanage a transport that is carrying your units (not an enemy napping units) and you have no control over getting them back other than asking nicely.

I am requesting some sort of system that allows for units in transport that are not being transported by their own player to call for an abort (or drop me off right here) order. If some game depend on this for com napping strategy than maybe have it configurable so it can affect allied transport, or all players transports (to allow for com napping escaping?). If that is too much work then just an abort order for allies would be awesome.

Does this sound reasonable?
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Drop option for allied transport running away with your

Post by SpliFF »

Seems very game-specific. Would recommend implementing a gadget for this (unloading is already lua-able).
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Drop option for allied transport running away with your

Post by Google_Frog »

Lua.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Drop option for allied transport running away with your

Post by bobthedinosaur »

Can we move this to the lua forum then?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Drop option for allied transport running away with your

Post by knorke »

function script.TransportPickup (passengerID)
if (unit is on my own team) then
Spring.UnitScript.AttachUnit (somepiece, passengerID)
else
--do nothing
end
end
(in spring tanks is something similiar so that you can not pick up your own flags)

It is still possible to give the load order (which might be confusing) but the unit will not execute it. (just moves to the would-be passenger)
Probally needs something with AllowCommand for that?
Post Reply

Return to “Lua Scripts”