I made a unit that always has a Behavior and I would like to have a SFX attached to the weapon of my unit as a result of having the behavior.
I tried making a Actor model and using the event "Behavior-X->On -> Create. I also tried Behavior-X-Any -> Create. Neither worked, which sort of make sense considering the behavior is always passive. And besides, even if that did work, I don't know how to attach the model to my units weapon.
I made a unit that always has a Behavior and I would like to have a SFX attached to the weapon of my unit as a result of having the behavior.
I tried making a Actor model and using the event "Behavior-X->On -> Create. I also tried Behavior-X-Any -> Create. Neither worked, which sort of make sense considering the behavior is always passive. And besides, even if that did work, I don't know how to attach the model to my units weapon.
Behavior.X.on -> Create should work, even if the behavior is always present at the unit. Make sure the Host Subject field is set to the main unit actor or to _Selectable or _Unit.
Attaching is done at the Hosting: Host Site Operations - field. You can select from a huge list of site operations here, including several ones to attach the model to specific attachment points, for example SOpAttachWeapon.
This worked, but for some reason, it created two SFXs. One of them is correctly attached to my units weapon, but the second SFX is created at the location of his weapon and then just floats there, even after I walk away. What could cause that?
Its gotta be coming from the actor because it uses the same model as the one attached to his hand. If I change the actor model, they both change. Could it have something to do with the events? My only events are Behavior-X-On -> Create and then ActorCreate -> Play Animation -> Stand - Forever
Doh! Im an idiot. The floating sfx was from a trigger where i tried doing the attachment but I forgot I made it. Everythings working great! Thanks so much for the help guys!
I made a unit that always has a Behavior and I would like to have a SFX attached to the weapon of my unit as a result of having the behavior.
I tried making a Actor model and using the event "Behavior-X->On -> Create. I also tried Behavior-X-Any -> Create. Neither worked, which sort of make sense considering the behavior is always passive. And besides, even if that did work, I don't know how to attach the model to my units weapon.
Any suggestions? Thanks guys!
Behavior.X.on -> Create should work, even if the behavior is always present at the unit. Make sure the Host Subject field is set to the main unit actor or to _Selectable or _Unit.
Attaching is done at the Hosting: Host Site Operations - field. You can select from a huge list of site operations here, including several ones to attach the model to specific attachment points, for example SOpAttachWeapon.
@Kueken531: Go
This worked, but for some reason, it created two SFXs. One of them is correctly attached to my units weapon, but the second SFX is created at the location of his weapon and then just floats there, even after I walk away. What could cause that?
Another interfering actor?
@Kueken531: Go
Its gotta be coming from the actor because it uses the same model as the one attached to his hand. If I change the actor model, they both change. Could it have something to do with the events? My only events are Behavior-X-On -> Create and then ActorCreate -> Play Animation -> Stand - Forever
Doh! Im an idiot. The floating sfx was from a trigger where i tried doing the attachment but I forgot I made it. Everythings working great! Thanks so much for the help guys!