[solved] Unit visibility check
Moderator: Forum Moderators
- ZombieKnight
- Posts: 249
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
[solved] Unit visibility check
Hi,
Do you know how to check if my_unit is visible for the side=1?
Thanks.
Do you know how to check if my_unit is visible for the side=1?
Thanks.
Last edited by ZombieKnight on May 3rd, 2024, 12:12 pm, edited 1 time in total.
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills
- lhybrideur
- Posts: 376
- Joined: July 9th, 2019, 1:46 pm
- ZombieKnight
- Posts: 249
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: Unit visibility check
In [have unit]?
That ignores hp=0 units in last breath events.
I want to add visibility filter to some more parameters of unit.get.
How to do so?
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills
Re: Unit visibility check
Dont use have_unit then, use filter_vision.
- ZombieKnight
- Posts: 249
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: Unit visibility check
Thanks, I see.
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills