UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: novadex on February 13, 2018, 02:45:37 pm

Title: fx spawning
Post by: novadex on February 13, 2018, 02:45:37 pm
 Currently im using tag_origin on a script model to spawn  the fx, but  the fx default spawn angle is (0.0.0). I need the fx to be rotated 90 degrees.

 How do i ,.. can i, include angle to the code?
Title: Re: fx spawning
Post by: gympie6 on February 13, 2018, 11:11:10 pm
Currently im using tag_origin on a script model to spawn  the fx, but  the fx default spawn angle is (0.0.0). I need the fx to be rotated 90 degrees.

 How do i ,.. can i, include angle to the code?

Well you can do it two different ways.
1: Open your Effects editor and rotate your fx 90 degress and then save it.
2: Or look at my example.

linkTag = "tag_origin";
fxModel = "tag_origin";
fxTag = "tag_origin";

self.fx_chain = Spawn( "script_model", self GetTagOrigin( linkTag ) );
self.fx_chain.angles = self.fx_chain.angles+(-90,0,0); <<< = This is what you are searching.
self.fx_chain SetModel( fxModel );
self.fx_chain LinkTo( self, linkTag );

PlayFxOnTag( level._effect["*Your FX here*"], self.fx_chain, fxTag );

I see now that this is for BO3. Maybe it works the same but I don't know...