fx spawning

broken avatar :(
Created 278 days ago
by novadex
0 Members and 1 Guest are viewing this topic.
487 views
broken avatar :(
×
broken avatar :(
Location: cavancouver island
Date Registered: 25 January 2014
Last active: 50 days ago
Posts
49
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
noVADex*
Signature
A bird gripped in your hand.. is better than a #2 in the bush. ..$h|+ ....piss on that zombie!
×
novadex's Groups
novadex's Contact & Social Links
 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?
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 7 hours ago
Posts
215
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksDistenc5Teffrie
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...   
Last Edit: February 13, 2018, 11:12:21 pm by gympie6

 
Loading ...