UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

fx spawning

broken avatar :(
Created 6 years ago
by novadex
0 Members and 1 Guest are viewing this topic.
1,506 views
broken avatar :(
×
broken avatar :(
Location: cavancouver island
Date Registered: 25 January 2014
Last active: 1 year 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: 5 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
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 LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
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 ...