Hi everyone
I am making a turret. Right now, it's fully functional - has a missile, sounds animation etc, but I'd like it to fire three times in a short amount of time (similar to a 3 round burst fire weapon).
I have searched the forums but couldn't find an answer. can someone help me?
thanks.
Use a "Create Persistent" effect with the right "Period", "Period Count" and "Periodic effect"
Take a look at the terran Missile Turret, Thor Javelin Missiles, Viking Missiles, Banshee Missiles, Zealot Psi-blades and... Ok, can't think of any more weapons that have burst fire. Well, actually, Thor's Hammer (Ground attack) fires twice as well. None of those fires three times, most are 2, javelins are 4, but adjusting the number is easy.
took me some time but I got it working! I did try to look at how the banshee worked, but I missed the "persistent effect" thing :p
thanks!
edit - unrelated question, but my turret fires a missile that explodes on contact. I want to change the color of the explosion to, say, bloody red. is it done in the events? the missile's events or the attack actor events? or is it done somewhere else?
thanks.
that depends entirely on how your attack is set up. Usually, missiles have an action actor that dictates impact and launch models and sounds and things like that. Those models can't be affected as far as I know.
What you can do instead is remove the impact model from the action actor, and create a new actor of type "Model" based on ModelAnimationStyleOneshot or something like that (Sorry, been over a month since I actually made an actor from scratch, can't remember exact names), set its model to what you need, and add these events:
Effect.(Your impact effect)
-> At Effect (right click the event, then press "add term")
-Create
and
ActorCreation
-SetTintColor (Your color)
If the model doesn't show up, it's probably due to it having a different default animation name (Some models have their animation called birth, others stand, some death, etc. Check the previewer, then modify actor events to play the right animation) If it still doesn't work, post again and someone else will help you (Srry, have to go to sleep)
Oh, and just fyi, some models don't handle tints well. The fog doodads for example completely disappear if you tint them black (didn't try out different colors) Units and things like that are always fine, but models using particles sometimes mess up.
Hi everyone I am making a turret. Right now, it's fully functional - has a missile, sounds animation etc, but I'd like it to fire three times in a short amount of time (similar to a 3 round burst fire weapon). I have searched the forums but couldn't find an answer. can someone help me? thanks.
Use a "Create Persistent" effect with the right "Period", "Period Count" and "Periodic effect"
Take a look at the terran Missile Turret, Thor Javelin Missiles, Viking Missiles, Banshee Missiles, Zealot Psi-blades and... Ok, can't think of any more weapons that have burst fire. Well, actually, Thor's Hammer (Ground attack) fires twice as well. None of those fires three times, most are 2, javelins are 4, but adjusting the number is easy.
@TheAlmaity: Go
took me some time but I got it working! I did try to look at how the banshee worked, but I missed the "persistent effect" thing :p thanks!
edit - unrelated question, but my turret fires a missile that explodes on contact. I want to change the color of the explosion to, say, bloody red. is it done in the events? the missile's events or the attack actor events? or is it done somewhere else? thanks.
that depends entirely on how your attack is set up. Usually, missiles have an action actor that dictates impact and launch models and sounds and things like that. Those models can't be affected as far as I know.
What you can do instead is remove the impact model from the action actor, and create a new actor of type "Model" based on ModelAnimationStyleOneshot or something like that (Sorry, been over a month since I actually made an actor from scratch, can't remember exact names), set its model to what you need, and add these events:
Effect.(Your impact effect)
-> At Effect (right click the event, then press "add term")
-Create
and
ActorCreation
-SetTintColor (Your color)
If the model doesn't show up, it's probably due to it having a different default animation name (Some models have their animation called birth, others stand, some death, etc. Check the previewer, then modify actor events to play the right animation) If it still doesn't work, post again and someone else will help you (Srry, have to go to sleep)
Oh, and just fyi, some models don't handle tints well. The fog doodads for example completely disappear if you tint them black (didn't try out different colors) Units and things like that are always fine, but models using particles sometimes mess up.
thanks for your help. I still can't get it to work, I think I'm doing something wrong in the events.
when you say " Your impact effect", do you mean the damage effect?
edit- found it! yes it is the damage effect. it works perfectly, thanks again!