Login

russian armor

Force Retreat and Wurfrahmen Cooldown

13 Aug 2019, 05:54 AM
#1
avatar of Tpain101

Posts: 49


I have 2 problems.

I have an ability that disables movement but I want it to cancel when I press the Retreat button so the soldier doesn't get stuck in a retreat state.

I want the wurfrahmen multi rockets ability and single rocket ability to make the flame rockets ability go into cooldown mode when used, and vice versa.
13 Aug 2019, 06:41 AM
#2
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

In sbps, the squad_retreat_ext has a list of actions. Those actions will be executed on retreat. You can enable its movement in there.

Set in both abilities the shared_timer to the same name. All abilities with that shared_timer within the squad will reset when using one of them.
14 Aug 2019, 07:11 AM
#3
avatar of Tpain101

Posts: 49

In squad_retreat_ext > modifiers i added move_enable_modifier. I set exclusive to true. Now what happens with my ability that slows down movement speed, when i press retreat the squad will retreat with the reduced movement speed and not run back.
14 Aug 2019, 09:04 AM
#4
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

You can use a requirement_action in your ability to apply the movement modifier. Then set in the requirements: required_in_state with not_retreating set to true.
19 Aug 2019, 18:35 PM
#5
avatar of Tpain101

Posts: 49

Forgot to tell you, this worked. Thanks.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

742 users are online: 742 guests
0 post in the last 24h
8 posts in the last week
37 posts in the last month
Registered members: 49098
Welcome our newest member, Coh2_Relaxed
Most online: 2043 users on 29 Oct 2023, 01:04 AM