I made an ability to give the sniper extra increase it's sight radius. This ability doesn't work when garrisoned though. How do I make it work?
i did modifiers > sight_radius_modifier > value 35
Sniper Garrison Vision
22 Aug 2016, 07:57 AM
#1
Posts: 49
23 Aug 2016, 06:32 AM
#2
Posts: 1304 | Subs: 13
Did you set the requirement properly?
Preferably, put it in sbsp and then under squad_actions and then put a requirement action that has the in_state garrisoned flag to true and put the modifiers into actions.
A good example to look at would be abilities like Tommy, Sapper, and Osttruppen cover bonuses.
Preferably, put it in sbsp and then under squad_actions and then put a requirement action that has the in_state garrisoned flag to true and put the modifiers into actions.
A good example to look at would be abilities like Tommy, Sapper, and Osttruppen cover bonuses.
23 Aug 2016, 08:21 AM
#3
Posts: 49
I did as you said, but he just gets always the increased vision, here's the screenshot of AE:
http://imgur.com/i65wQsW
Also, I want the vision to be increased with the ability and not just when garrisoned, if possible.
http://imgur.com/i65wQsW
Also, I want the vision to be increased with the ability and not just when garrisoned, if possible.
23 Aug 2016, 19:17 PM
#4
Posts: 85 | Subs: 1
Could you please post a screenshot of the ability in your attribute editor?
24 Aug 2016, 06:35 AM
#5
Posts: 49
here http://imgur.com/4qqOtzA
When I click on the ability while garrisoned the sniper loses all vision. What I'm trying to have is either his radius vision increases or where he's aiming at.
The important is to have one of these two effects even if it's without the use of an ability.
24 Aug 2016, 11:30 AM
#6
Posts: 2636 | Subs: 17
Could you, temporarily, change the ability to a multiplicative sight increase?
- Say, change the ability from +35 vision to +20% sight radius
What I am suspecting that happens is that units that are garrisoned already receive an increase to their sight range. Perhaps what happens is that when you increase the vanilla sight radius increase AND your ability, things gets messed up.
Moreover, I am not sure how the game combines an additive increase (your ability) and a multiplicative increase (what I suspect to be the vanilla sight range increase to be).
- Say, change the ability from +35 vision to +20% sight radius
What I am suspecting that happens is that units that are garrisoned already receive an increase to their sight range. Perhaps what happens is that when you increase the vanilla sight radius increase AND your ability, things gets messed up.
Moreover, I am not sure how the game combines an additive increase (your ability) and a multiplicative increase (what I suspect to be the vanilla sight range increase to be).
24 Aug 2016, 17:22 PM
#7
Posts: 85 | Subs: 1
here http://imgur.com/4qqOtzA
When I click on the ability while garrisoned the sniper loses all vision. What I'm trying to have is either his radius vision increases or where he's aiming at.
The important is to have one of these two effects even if it's without the use of an ability.
I did some testing and it seems like the garrison sight bonus is a set value, not an addition or multiplication modifier (at least for the sniper.) By changing the sniper's sight to something low like 10, his garrison sight remained unchanged.
One workaround to your problem would be to find out what the garrison sight value is (either through the attribute editor or by comparing to other units' ranges), then change hold_sight_radius (garrison sight modifier) to match the sight increase that sight_radius_modifier gives.
For example, if the garrison sight value is 50 and you wanted it to match your ungarrisoned sight of 80 (45 default + 35 bonus) while the ability is toggled on, you would change hold_sight_radius's value to 30 (addition).
25 Aug 2016, 06:22 AM
#8
Posts: 49
Don't worry I understood what you said, and guess what...your solution worked!!
thanks
thanks
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
85 | |||||
27 | |||||
23 | |||||
13 | |||||
6 | |||||
157 | |||||
11 | |||||
6 | |||||
3 | |||||
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.653231.739+13
- 2.839223.790+2
- 3.35057.860+15
- 4.592234.717-1
- 5.278108.720+29
- 6.306114.729+2
- 7.645.928+5
- 8.922406.694+1
- 9.1122623.643+3
- 10.265138.658+2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
10
Download
1245
Board Info
694 users are online:
694 guests
0 post in the last 24h
0 post in the last week
28 posts in the last month
0 post in the last week
28 posts in the last month
Registered members: 49427
Welcome our newest member, Baqis73421
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Baqis73421
Most online: 2043 users on 29 Oct 2023, 01:04 AM