Login

russian armor

Changing target priority/attention through criticals.

12 Oct 2017, 05:25 AM
#1
avatar of Lugie
Senior Modmaker Badge

Posts: 327

As the title states, I need a bit of help with making enemy units on auto-fire not/not want to target a unit with a certain critical. I've tried this with modifiers, but the only modifier I can find is target_priority_squad (I tried applying it to a single entity, im not sure its worked, looks like it hasn't). I haven't found anything else that could possibly do this. Any modding pro's willing to lend a hand?
12 Oct 2017, 13:57 PM
#2
avatar of Mr.Smith

Posts: 2636 | Subs: 17

Off the top of my head, you're looking for something called weapon_prereq_action or something. You can find the precise name of the action used under the prioritise vehicles ability.

Within that ability, you can certainly specify the unit types to allow (or disallow) from targeting. It might also be possible to add a critical_requirement option, but I've never tried.

If there's something in the game that does what you're looking for, it's probably that action.
13 Oct 2017, 10:26 AM
#3
avatar of Olhausen
Modmaker Badge

Posts: 245

@ Mr Smith: I used this function "weapon_prereq_action "in my mod and it is works very good but this stop working when you add to the squad slot items like bazookas or weapon upgrades.

I tryied many times to fix it but I failed. I dont know why

Regards
Olhausen
14 Oct 2017, 01:30 AM
#4
avatar of Lugie
Senior Modmaker Badge

Posts: 327

Aye, I tried that and it has no effect. This is meant to be done on the unit that you don't want to shoot, not the unit you don't want to be shot. Since its a critical, all actions have to be applied to the unit with the critical, not units firing at the unit with the critical. Maybe there's some way to do it with Scar, but im not sure.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

676 users are online: 676 guests
0 post in the last 24h
12 posts in the last week
24 posts in the last month
Registered members: 49852
Welcome our newest member, vn88company
Most online: 2043 users on 29 Oct 2023, 01:04 AM