Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: eDeK
Hi, i have a FX playing in a "tag" of my xanim in GSC, all correct, but my problem is i cant stop it after "X seconds", the original FX is "infinite" dont stop.
I need to edit the FX and export it?
To do something in CSC?
Or other thing i forget?
Zone:
fx,zombie/fx_ritual_gatestone_crack_glow_zod_zmb
GSC:
#define KAMEHAMEHA_FX "zombie/fx_ritual_gatestone_crack_glow_zod_zmb"
#precache( "fx", KAMEHAMEHA_FX );
thread gohan();
function gohan()
{
model = GetEnt("gohan_kamehameha_uno","targetname");
model useanimtree(#animtree);
model AnimScripted( "gohan_kamehameha_xanim", model.origin, model.angles, %gohan_kamehameha_xanim);
PlayFXOnTag( KAMEHAMEHA_FX, model, "GD_hand_L" );
wait 1.6;
//HERE A NEED STOP THE FX
wait 1;
}
ModmeBot:
Reply By: Harry Bo21
Spawn another model - play the fx on that
delete it to stop it
ModmeBot:
Reply By: mathfag
In APE you can play and stop FX at specific frames by clicking on your anim file and adding 2 FX notetracks. 1 to start the fx and 1 to stop (use "kill FX"). Not sure if it works on normal models or just AI. Probably will.
ModmeBot:
Reply By: eDeK
Work perfect Mathfag, 1 Million of thanks!