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

Script Origin not playing an FX

broken avatar :(
Created 11 years ago
by HitmanVere
0 Members and 1 Guest are viewing this topic.
1,598 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I have been messing around with scripting and tried to play oneshot FX through script origin, since other FXs for me work that way. But its not working, for some reason

I have the level effect set as this
Code Snippet
Plaintext
level._effect["step2_fx"]			= loadfx( "explosions/fx_explosion_generator_mobile" ); // Explosion

Then way I do it in script
Code Snippet
Plaintext
console()
{
        fire_console = GetEnt("fire_console","targetname");
explosion = GetEnt("explosion","targetname");
        console_trig = getent("console_trig", "targetname");
        glass = getent("glass", "targetname");
        console_trig SetCursorHint("HINT_NOICON");
        console_trig SetHintString("");


    flag_wait("electricity_on");
        console_trig SetCursorHint("HINT_NOICON");
        console_trig SetHintString("Press &&1 to Do Kek");

ent = spawn("script_model", console_trig.origin);
        ent setModel("tag_origin");
        PlayFXOnTag(level._effect["console_l"], ent, "tag_origin");

        console_trig waittill("trigger", player);
fire_console PlaySound("five_switch");
fire_console PlaySound("grenade_explode");
        console_trig delete();
        glass delete();
ent delete();
playFx(level._effect["step_fx2"], explosion.origin); // Doesnt play
        playFx(level._effect["step_fx"], fire_console.origin);

players = getplayers();
for(i=0;i<players.size;i++)
{
if( distance( players[i].origin, fire_console.origin) <= 300 )
{
Earthquake( 0.6, 3, players[i].origin, 850 );
iprintln("Not telling you, lol");
}
}
        level notify("activate_stuff");

}

And then added it (and tried by removing it) in mod.csv
Code Snippet
Plaintext
fx,explosions/fx_explosion_generator_mobile

Is script origin the good way to spawn oneshot FX? Or should I do something else?
Last Edit: February 04, 2015, 07:17:13 pm by HitmanVere
Marked as best answer by HitmanVere 11 years ago
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 2 years ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Mapper Has released one or more maps to the UGX-Mods community.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
You put the "2" behind the FX in the wrong place :facepalm:  :please:

Lukkie1998
Last Edit: February 04, 2015, 07:23:35 pm by lukkie1998
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
You put the "2" behind the FX in the wrong place :facepalm:  :please:

Lukkie1998

:facepalm2: GG, me

 
Loading ...