Death Action Disabling Forward Retreat Points
23 Jan 2018, 21:52 PM
#1
Posts: 422 | Subs: 2
In my mod, I've given the Soviets a command bunker where works identically to the Ostheer command bunker with the exception that you can't garrison any units in it. I've then made a radio post that, if built near the command bunker, serves as an add-on of sorts and enables the retreat point ability. However, when the add-on structure is destroyed, the retreat ability becomes locked in its current state and is untoggleable, which means the retreat point is still on if the radio is destroyed, but you can't toggle it off because of a missing requirement. I'd like the retreat point to be automatically turned off when the requirement building is destroyed. How should I go around doing this?
24 Jan 2018, 15:01 PM
#2
Posts: 327
You could do it the old-fashioned way with dummy upgrades. While the radio building is alive, add a upgrade, and when it dies, take it away. Use this upgrade on the retreat ability itself as a usage_and_display.
Alternatively, if the retreat point is a invisible, separate entity like it should be, add a requirement check on it that checks if the player has a thingy, and when the player does not have that thingy, execute a destroy action.
Alternatively, if the retreat point is a invisible, separate entity like it should be, add a requirement check on it that checks if the player has a thingy, and when the player does not have that thingy, execute a destroy action.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
26 | |||||
13 | |||||
8 | |||||
6 | |||||
4 | |||||
1 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.35157.860+16
- 4.599234.719+7
- 5.934410.695-1
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1259
Board Info
761 users are online:
761 guests
0 post in the last 24h
12 posts in the last week
24 posts in the last month
12 posts in the last week
24 posts in the last month
Registered members: 49852
Welcome our newest member, vn88company
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, vn88company
Most online: 2043 users on 29 Oct 2023, 01:04 AM