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?
Vehicle crew requirement check
11 Jan 2018, 21:58 PM
#1
Posts: 73
11 Jan 2018, 23:13 PM
#2
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
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.
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
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?
What am i missing?
14 Jan 2018, 13:29 PM
#5
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.
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
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?
Have you guys had any luck removing vet, and if so, what am i missing?
24 Jan 2018, 23:07 PM
#7
Posts: 73
[Deleted]
PAGES (1)
0 user is browsing this thread:
Livestreams
13 | |||||
173 | |||||
13 | |||||
4 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.615221.736-1
- 3.35057.860+15
- 4.1110614.644+11
- 5.276108.719+27
- 6.306114.729+2
- 7.918405.694+2
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1236
Board Info
922 users are online:
1 member and 921 guests
softhealertech
softhealertech
0 post in the last 24h
5 posts in the last week
33 posts in the last month
5 posts in the last week
33 posts in the last month
Registered members: 49129
Welcome our newest member, softhealertech
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, softhealertech
Most online: 2043 users on 29 Oct 2023, 01:04 AM