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

Deleting FX

broken avatar :(
Created 7 years ago
by worstgabena
0 Members and 1 Guest are viewing this topic.
2,124 views
broken avatar :(
×
broken avatar :(
Location: usAnywhere but here
Date Registered: 31 October 2016
Last active: 6 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
worstgabena's Groups
worstgabena's Contact & Social Links
I need a way of getting an FX by targetname or something to trigger a terminal deletion of said FX. Here's what I tried:
Code Snippet
Plaintext
trigger = GetEnt("trigger_1", "targetname");
fx = GetEnt("fx_1", "targetname");

trigger waittill("trigger", player);

fx Delete();
trigger Delete();
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I need a way of getting an FX by targetname or something to trigger a terminal deletion of said FX. Here's what I tried:
Code Snippet
Plaintext
trigger = GetEnt("trigger_1", "targetname");
fx = GetEnt("fx_1", "targetname");

trigger waittill("trigger", player);

fx Delete();
trigger Delete();

In order to delete an fx you must use playfxontag.  To use playfxontag you have to use a model. So what you can do is spawn the script_model where you want the fx, set it to a tag_origin model, and then playfxontag on that tag_origin of the model.

Code Snippet
Plaintext
	ent = Spawn( "script_model", origintospawn );//replace origintoispawn with the position to spawn model
ent SetModel("tag_origin");
fx = pathandnameoffxyouprecached;//or however your adding fx
PlayFXOnTag(fx,ent,"tag_origin");

Then when your ready to delete the fx, delete the model:

Code Snippet
Plaintext
	ent delete();
broken avatar :(
×
broken avatar :(
Location: usAnywhere but here
Date Registered: 31 October 2016
Last active: 6 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
worstgabena's Groups
worstgabena's Contact & Social Links
Is there any way to fetch an existing FX by chance?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
no, you can play and stop fx in csc, but not in gsc.
broken avatar :(
×
broken avatar :(
Location: usAnywhere but here
Date Registered: 31 October 2016
Last active: 6 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
worstgabena's Groups
worstgabena's Contact & Social Links
How exactly would I do that?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
How exactly would I do that?

Its not as easy, but you would still prob playfxontag but using csc syntax in a csc script and then using stopfx.

you can find many examples in the scripts. You want to prob use gsc, and spawn the model and delete the model. It works just fine, unless your fx has some odd delay and you want it to stop quicker.
broken avatar :(
×
broken avatar :(
Location: usAnywhere but here
Date Registered: 31 October 2016
Last active: 6 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
worstgabena's Groups
worstgabena's Contact & Social Links
Alright, thanks. I'll use GSC then. :)

 
Loading ...