Login

russian armor

Vehicle crew requirement check

11 Jan 2018, 21:58 PM
#1
avatar of Foxhound634

Posts: 73

Hi, i have an upgrade that should determine whether or not a given squad is currently the crew of a vehicle. Problem is that i don't know if there is even a requirement check that does that.

Do you guys know?
11 Jan 2018, 23:13 PM
#2
avatar of Lugie
Senior Modmaker Badge

Posts: 327

Maybe you could do it through a target occupants action? Otherwise I dont know if its possible without just giving the squad the upgrade at all times.
12 Jan 2018, 12:21 PM
#3
avatar of Mr.Smith

Posts: 2636 | Subs: 17

It's possible to include such a check. It's been a long time, and I don't remember exactly how I did it.

Look in the ebps file of the vehicle under recrewable_ext -> race_list (aef? or all factions depending on what you want to do) -> apply_to_driver_actions

There, you need to add a requirement action that checks the entity type of your crew. e.g., check if they have a specific slot item, or if they're medics etc.

Then, inside the requirement action, you need to add a:
- Change target action -> self

This allows you to apply actions on the vehicle, rather than the driver, and have a requirement action that checks the driver rather than the vehicle.

Then, inside your charge target action, you do what you intended to do.
13 Jan 2018, 04:06 AM
#4
avatar of Foxhound634

Posts: 73

Thx for the replies. The thing i want to do is remove all of a squad's veterancy when it enters or exits a vehicle. I tried the driver_action method (tho i didn't change target, i don't think it's needed?), the target_occupants method and the recrew_penalty method, but i can't get it to work.

What am i missing?
14 Jan 2018, 13:29 PM
#5
avatar of Mr.Smith

Posts: 2636 | Subs: 17

First of all, ensure that it's possible to remove veterancy from a squad to begin with; maybe it's that part of your changes that isn't possible.

Secondly, ensure that you can apply actions properly to the drive; e.g., try giving them a permanent bazooka item.

Finally, if you've checked both of the above and manage to get them both to work individually, try adding a delay for the action. Maybe that will prevent your veterancy action being override by something else.
20 Jan 2018, 16:19 PM
#6
avatar of Foxhound634

Posts: 73

Wow, it seems that you actually can't remove veterancy...I tried doing a veterancy action with a negative number of experience points...it didn't do anything. I also tried apply_modifier > entity_veterancy_experience_modifier, but that wouldn't even add veterancy in the first place.

Have you guys had any luck removing vet, and if so, what am i missing?
24 Jan 2018, 23:07 PM
#7
avatar of Foxhound634

Posts: 73

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

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