Toggle blocking of features for pathing?

Toggle blocking of features for pathing?

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

Moderator: Moderators

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Toggle blocking of features for pathing?

Post by knorke »

How to toggle if a feature is blocking unit movemt?

Basically like Spring.SetUnitBlocking but Spring.SetFeatureBlocking does not seem to exist but maybe someone found a trick?
Only way I found is to lift it a certain amount over the terrain with Spring.SetFeaturePosition but the required lift is too high to look good.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Toggle blocking of features for pathing?

Post by SinbadEV »

knorke wrote:[...]the required lift is too high to look good.
Can you move the hit sphere instead of the whole feature? can you remove a blocking feature and replace it with a passable feature?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Toggle blocking of features for pathing?

Post by knorke »

That would be a springish solution but can do neither as I still want the feature to be target of reclaim etc
So can not move the hitvolume underground etc (if that would even work, did not test)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Toggle blocking of features for pathing?

Post by FLOZi »

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Toggle blocking of features for pathing?

Post by knorke »

real time, as in Spring.SetUnitBlocking but Spring.SetFeatureBlocking
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Toggle blocking of features for pathing?

Post by zwzsg »

Make two featuredef, one blocking the other not, and toggle by deleting and creating? :|
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Toggle blocking of features for pathing?

Post by knorke »

...and copy over the states like reclaim-percent or health to new non-blocking feature and when a unit was doing something with the feature adjust all their command queues to use new featureID \o/
hm.
http://springrts.com/mantis/view.php?id=3882
Post Reply

Return to “Lua Scripts”