Hi, i have a unit with a kill_action under the combat_ext. This action has a couple of requirement actions in it, because i want it to do different things, depending on the type of enemy unit killed. Now this would be easy to do if the check was for my OWN units, but i don't know how filter through enemy units.
Each of the mentioned requirement actions has a unit_type check, to see if the killed unit is infantry or vehicle...but i think that just makes it check what type of unit MY unit is.
So, how do i check for enemy unit type killed?
Filtering kill actions
23 Feb 2018, 23:32 PM
#1
Posts: 73
24 Feb 2018, 10:39 AM
#2
Posts: 2636 | Subs: 17
The solution you are looking for is something like this: https://www.coh2.org/topic/62816/modifying-veterancy-system
Basically you have to put a hitpoints check on the target of every possible weapon.
I can't really think of a different way to solve this.
Basically you have to put a hitpoints check on the target of every possible weapon.
I can't really think of a different way to solve this.
2 Mar 2018, 12:30 PM
#3
Posts: 73
Ok so i followed the instructions in that thread, and tried out a post_damage action on a certain weapon. While it did work, the problem was getting it to work only when the enemy was actually killed by that weapon, and not just had taken damage from it. I first tried the health requirement, and set both max and min health to 0, but that didn't work. I then tried the required_critical for each critical possible (like when a soldier dies), but that didn't work either.
What am i missing here?
What am i missing here?
3 Mar 2018, 05:17 AM
#4
Posts: 327
I would stay away from that kind of system, due to possible problems with performance. Doing a check each time a hit is applied would slow things down quite alot.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
187 | |||||
18 | |||||
8 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.611220.735+5
- 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
798 users are online:
798 guests
0 post in the last 24h
5 posts in the last week
34 posts in the last month
5 posts in the last week
34 posts in the last month
Registered members: 49125
Welcome our newest member, Xclusive
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Xclusive
Most online: 2043 users on 29 Oct 2023, 01:04 AM