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
28 | |||||
233 | |||||
104 | |||||
15 | |||||
2 | |||||
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
851 users are online:
851 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