Function FlyUp() Ref.PushActorAway(Ref, 0) Ref.ApplyHavokImpulse(0.0, 0.0, 1.0, 20000)EndFunctionEvent OnEffectStart(Actor Target, Actor Caster) Target.FlyUp()EndEvent
faster than just writing out it all?
Function FlyUp() Ref.PushActorAway(Ref, 0) Ref.ApplyHavokImpulse(0.0, 0.0, 1.0, 20000)EndFunctionEvent OnEffectStart(Actor Target, Actor Caster) Target.FlyUp()EndEvent
Event OnEffectStart() if (Utility.RandomInt(0, 99) > 0) ;do something else ;extremely large amount of code endif ;some more code so can't use a Return earlierEndEvent