No way to access 'AllowUnitBuildStep' for repair?

No way to access 'AllowUnitBuildStep' for repair?

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

Moderator: Moderators

Post Reply
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

No way to access 'AllowUnitBuildStep' for repair?

Post by TheFatController »

Seems to get called for Reclaiming a unit but not Repairing, is there any way to do this for Repair (hacky or otherwise?)

Thanks
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: No way to access 'AllowUnitBuildStep' for repair?

Post by Licho »

There is no way atm.

I requested new callin about 3 years ago in mantis
(Also capture and similar callins would be handy)
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: No way to access 'AllowUnitBuildStep' for repair?

Post by TheFatController »

If anyone likes hacks I have implemented a gameframe based repair blocking weapon in http://springrts.com/phpbb/viewtopic.php?f=44&t=26633 on the surface it seems to work fine
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: No way to access 'AllowUnitBuildStep' for repair?

Post by Google_Frog »

ZK uses this to change the speed of repair, something similar could prevent repair (or at least make it really slow).

http://code.google.com/p/zero-k/source/ ... _speed.lua

It basically works by changing unit buildtime on the fly using Spring.SetUnitCosts.
Post Reply

Return to “Lua Scripts”