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
100 | |||||
5 | |||||
145 | |||||
99 | |||||
19 | |||||
18 | |||||
11 | |||||
6 | |||||
4 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.653231.739+13
- 2.840223.790+3
- 3.35057.860+15
- 4.599234.719+7
- 5.278108.720+29
- 6.927408.694+1
- 7.645.928+5
- 8.306114.729+2
- 9.1123623.643+4
- 10.266140.655+1
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1257
Board Info
656 users are online:
656 guests
0 post in the last 24h
5 posts in the last week
20 posts in the last month
5 posts in the last week
20 posts in the last month
Registered members: 49667
Welcome our newest member, Chmura
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Chmura
Most online: 2043 users on 29 Oct 2023, 01:04 AM