So I have a buff for marines that fires every period (1 sec). I want to disable the actor from appearing when marines are in a bunker. However, the actor message that should work doesn't seem to. Can you not send actor messages to cargo units period?
I made it so a behavior goes onto the unit when it's loaded as cargo, and tried to make a validator check for absence of the behavior before firing (in the actor events).
The actor appropriately disables when it gets the dummy behavior when it's NOT a cargo unit, but when it is a cargo unit, the actor just appears on top of the bunker and looks wonky. It seems cargo units can't be sent actor messages?
I noticed that you can stim units in a bunker, but the stim icon doesn't appear above the bunker. I want to replicate this, but there's no validator anywhere in the stimpack impact actor, so I can't figure out how this was programmed. :(
The reason that the actor is still showing and the stimpack impact actor isn't is because I'm changing around the placement of my problematic actor with Host Site Operations. How do I make the Host Site Operations only work for the marine, and not for the bunker?
Check where events like ValidateUnit run, maybe you can make a "host=Bunker" check or something.
Or, if actor events really don't work for "Hidden" units (and you can't disable that with some obscure flag), set it up in reverse: make an actor event on the Marine trigger the Stimpack model! Instead of having that model create itself, put the Behavior.Stimpack.On->Create event in the Marine actor.
So I have a buff for marines that fires every period (1 sec). I want to disable the actor from appearing when marines are in a bunker. However, the actor message that should work doesn't seem to. Can you not send actor messages to cargo units period?
I made it so a behavior goes onto the unit when it's loaded as cargo, and tried to make a validator check for absence of the behavior before firing (in the actor events).
The actor appropriately disables when it gets the dummy behavior when it's NOT a cargo unit, but when it is a cargo unit, the actor just appears on top of the bunker and looks wonky. It seems cargo units can't be sent actor messages?
I noticed that you can stim units in a bunker, but the stim icon doesn't appear above the bunker. I want to replicate this, but there's no validator anywhere in the stimpack impact actor, so I can't figure out how this was programmed. :(
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
Update:
The reason that the actor is still showing and the stimpack impact actor isn't is because I'm changing around the placement of my problematic actor with Host Site Operations. How do I make the Host Site Operations only work for the marine, and not for the bunker?
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
Check where events like ValidateUnit run, maybe you can make a "host=Bunker" check or something.
Or, if actor events really don't work for "Hidden" units (and you can't disable that with some obscure flag), set it up in reverse: make an actor event on the Marine trigger the Stimpack model! Instead of having that model create itself, put the Behavior.Stimpack.On->Create event in the Marine actor.
Got it thanks Photoloss. I ended up doing the "reverse" method you mentioned, then creating the actor with an "At Outer" condition in the actor event.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)