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)
1 user is browsing this thread:
1 guest
Livestreams
25 | |||||
268 | |||||
97 | |||||
18 | |||||
3 | |||||
2 | |||||
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1099614.642-1
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1231
Board Info
771 users are online:
771 guests
1 post in the last 24h
7 posts in the last week
39 posts in the last month
7 posts in the last week
39 posts in the last month
Registered members: 49062
Welcome our newest member, Mclatc16
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Mclatc16
Most online: 2043 users on 29 Oct 2023, 01:04 AM