Problem with hide
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
- Posts: 17
- Joined: October 14th, 2017, 5:48 pm
Problem with hide
I have a problem. Units in addon sometimes appeare when they sould be hide. I think problem is in wrong code but i cant find where is wrong. Can u help me?
Code: Select all
#define ABILITY_GAL_UKRYCIE
[hides]
id=gal_ukrycie
name="Hiding countrymen"
description="Friendly Units around a unit with this ability will not be able to be seen by the enemy."
affect_self=no
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
[not]
race=mechanical,Animals
[/not]
[/filter]
[/affect_adjacent]
[/hides]
#enddef
Re: Problem with hide
[hides] ability works on unit self, instead of what you doing give an [hides] ability for the units that are supposed to cloak that filters for adjacent friendly unit that is supposed to enable this.
Re: Problem with hide
You need a "affect_allies=yes" command to enable the adjacent verification