• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Conditional Bootstrap on a Modification?

TCArknight

Well-known member
Ok, here's the situation I need some help with.

1) I have a vehicle that can be in one of two forms (Mode.A and Mode.B) which are separate vehicles.
2) I have a vehicle Modification that bootstraps a weapon to the vehicle but only if it's Mode.B.

I can get the Mode.A/B tag with perform container.parent.pulltags[Mode.?]. This gets the Mode.? onto the Modification (which is the one doing the bootstrap of the weapon).

However, I'm at a loss to use that tag as the condition of the bootstrap. :( I tried just <containerreq phase="Initialize" priority="2100">Mode.B <> 0</containerreq> but no luck. I know hero#Mode.B <> 0 won't work. What am I missing?

Any help would be appreciated. :)

Thanks!
TC
 
When containerreqs are looking for a tag, they're looking for it in their container. So


perform parent.pulltags[Mode.?]
perform container.pushtags[Mode.?]


(having to use container.parent to get to the parent is a leftover of an old bug where it didn't let you get there directly).
 
Back
Top