Command map image toggle - per team


(evillair) #1

I am trying to get custom images for my pak to work correctly but they only seem to work right for allies.

I want that when the pak is built there’s no command post image but I also want to use a custom axis image when it is built.
The problem is that the customaxisimage shows up when the pak is built and destoyed.

Is there a way to toggle it for one team only? I’ve searched the forums but the only solution I found was just a normal toggle that works for both teams. I need to somehow only toggle the axis cm image.

Any help would be appreciated.

Thanks.


(evillair) #2

No one knows I guess?


(d3coy) #3

bump


(damocles) #4

The only way I can think of to toggle a CM marker for one specific team would be to have two trigger_objective_infos. One for allies, one for axis. Then simply hide the one you want removed using setstate.


(Ifurita) #5

For constuctibles (ex Church Doors in Dubrovnik), I used an extra CM Icon + TOI. The standard CM icon, linked to the constructible shows the following:

  • Construct boxes for axis and dyno icon for allies. When the doors are built, axis see nothing

The extra TOI shows the following:

  • Door icon for axis

The script simply setstates the second pair upon the constructible’s death or rebuild event