Page 1 of 1
Toggle blocking of features for pathing?
Posted: 05 Jul 2013, 18:37
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.
Re: Toggle blocking of features for pathing?
Posted: 05 Jul 2013, 19:15
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?
Re: Toggle blocking of features for pathing?
Posted: 05 Jul 2013, 19:42
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)
Re: Toggle blocking of features for pathing?
Posted: 05 Jul 2013, 21:07
by FLOZi
Re: Toggle blocking of features for pathing?
Posted: 05 Jul 2013, 21:22
by knorke
real time, as in Spring.SetUnitBlocking but Spring.SetFeatureBlocking
Re: Toggle blocking of features for pathing?
Posted: 05 Jul 2013, 23:53
by zwzsg
Make two featuredef, one blocking the other not, and toggle by deleting and creating?

Re: Toggle blocking of features for pathing?
Posted: 06 Jul 2013, 00:59
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