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.
Toggle blocking of features for pathing?
Moderator: Moderators
Re: Toggle blocking of features for pathing?
Can you move the hit sphere instead of the whole feature? can you remove a blocking feature and replace it with a passable feature?knorke wrote:[...]the required lift is too high to look good.
Re: Toggle blocking of features for pathing?
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)
So can not move the hitvolume underground etc (if that would even work, did not test)
Re: Toggle blocking of features for pathing?
real time, as in Spring.SetUnitBlocking but Spring.SetFeatureBlocking
Re: Toggle blocking of features for pathing?
Make two featuredef, one blocking the other not, and toggle by deleting and creating? 

Re: Toggle blocking of features for pathing?
...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
hm.
http://springrts.com/mantis/view.php?id=3882