When enemy killed, GridSystemVisual doesn't update valid target visual

After doing this video I tested to see if the grid was updated when an enemy unit is killed by a shootAction, and presently it doesn’t (unless I missed something). Will that be fixed in a future video or did you not catch that one?

1 Like

Yeah I didn’t notice that until I was editing the final polish video, it doesn’t really affect anything since it’s only the visual, all the Validations work perfectly so even if a ShootAction is selected and it still has the visual saying it’s a valid position, if you click on it it doesn’t trigger the Shoot action.
You can easily fix it, just make the GridVisual update also when a Unit dies.

8 Likes

I fixed this problem by listening to BaseAction.OnAnyActionStop instead of the LevelGrid. Since most actions will have some kind effect on the gridvisuals.

3 Likes

Privacy & Terms