Author Topic: fx spawning  (Read 183 times)

0 Members and 1 Guest are viewing this topic.

Offline novadex

  • - Original Poster (OP) -
  • Legless Crawler
  • Posts: 49
  • Country: ca
  • Respect: 0
  • noVADex*
    • View Profile

fx spawning

« on: February 13, 2018, 05:45:37 am »
 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?
A bird gripped in your hand.. is better than a #2 in the bush. ..$h|+ ....piss on that zombie!

Offline gympie6

  • Rotting Walker
  • Posts: 86
  • Country: nl
  • Respect: 15
  • I love skulls
    • Distenc5
    • View Profile
  • CoD: WaW: Teffrie

Re: fx spawning

« Reply #1 on: February 13, 2018, 02: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...   
« Last Edit: February 13, 2018, 02:12:21 pm by gympie6 »