Yoshii
New Member
- Reaction score
- 74
Im having an issue with Enabling/destroy visiblity shown via region.Heres my code.It work for solo but during a multi player game I tested using red and blue because I figured it would bug and sure enough it does.
The bug arise when player 1 enter cell 1 or cell 2 and player 2 leave region 1 or 2 thus killing the visibility that enabled and not destroying the enabler that blue enable.I cant think of a way to fix it as the destroy/disable action does not let me chose which enabler to kill.I know there is a way I have done it before but its been a long time
note: the region 1 and 2 are only shown you cannot enter the cell so any trigger would have to take that into account.I attached a picture from Map editor so you can better see
thanks for help in advance.
http://img39.imageshack.us/i/bugndr.jpg/
The bug arise when player 1 enter cell 1 or cell 2 and player 2 leave region 1 or 2 thus killing the visibility that enabled and not destroying the enabler that blue enable.I cant think of a way to fix it as the destroy/disable action does not let me chose which enabler to kill.I know there is a way I have done it before but its been a long time
note: the region 1 and 2 are only shown you cannot enter the cell so any trigger would have to take that into account.I attached a picture from Map editor so you can better see
thanks for help in advance.
Trigger:
- Cell 1 Enter
- Events
- Unit - A unit enters Cell 1 <gen>
- Conditions
- Actions
- Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility across Region 1 <gen>
- Events
Trigger:
- Cell 1 leave
- Events
- Unit - A unit leaves Cell 1 <gen>
- Conditions
- Actions
- Visibility - Destroy (Last created visibility modifier)
- Events
Trigger:
- Cell 2 Enter
- Events
- Unit - A unit enters Cell 2 <gen>
- Conditions
- Actions
- Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility across Region 2 <gen>
- Events
Trigger:
- Cell 2 Leave
- Events
- Unit - A unit leaves Cell 2 <gen>
- Conditions
- Actions
- Visibility - Destroy (Last created visibility modifier)
- Events
http://img39.imageshack.us/i/bugndr.jpg/