UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: AWPh4nToM on February 19, 2017, 06:16:11 pm

Title: Stop OR Delete spawned FX
Post by: AWPh4nToM on February 19, 2017, 06:16:11 pm
Hi  :)

I use this code to spawn "FX"

Code Snippet
Plaintext
fx = spawn("script_model", (-337.5,640,178.5));
fx setModel("tag_origin");
playFxOnTag("dlc0/factory/fx_laser_hotspot_factory",fx,"tag_origin");
//wait 5;

But i don't know how can i stop or delete after X seconds.

Can someone help me ? Thanks a lot  ;)
Title: Re: Stop OR Delete spawned FX
Post by: shinged on February 19, 2017, 06:57:30 pm
Hi  :)

I use this code to spawn "FX"

Code Snippet
Plaintext
fx = spawn("script_model", (-337.5,640,178.5));
fx setModel("tag_origin");
playFxOnTag("dlc0/factory/fx_laser_hotspot_factory",fx,"tag_origin");
//wait 5;

But i don't know how can i stop or delete after X seconds.

Can someone help me ? Thanks a lot  ;)

wait( x );
fx delete();
Title: Re: Stop OR Delete spawned FX
Post by: MakeCents on February 20, 2017, 01:43:21 pm
Just an fyi,
Depending on your fx, if it has a delay in an element, it will continue to play until that element finishes. If you want it to stop immediately, which is seldom an issue, you will have to use csc.