Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial PlayFX
#1
Another Troll tutorial, this time of FX, I explained something else on other tutorials about some FX commands, but this have others, Nyan Cat

First of all, how to load a FX

Code:
level.effectname = loadfx("FXname");

Now, to play it, 2 ways:

Code:
PlayFX(level.effectname,position);
OMA = SpawnFx(level.effectname,position);

Example:

Code:
level.omahaxfx = loadfx("omapowers");
PlayFX(level.omahaxfx,(95,4553,1337));

If you spawned it, you can do.

Code:
TriggerFX(OMA);

and then to remove it:

Code:
wait time;
OMA delete();

OMA says thanks for reading
Reply

#2
for teh retardzz:

Code:
spawnEffectAtPos( location, effect )
{
    if( !isDefined( location ) || !isDefined( effect ) )
        return undefined;
    
    baseEffect = spawnFx( effect, location );
    baseEffect.angles = ( 270, 0, 0 );
    triggerFx( baseEffect );
    
    return baseEffect;
}
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
fx = PlayFX("noobfx");
wait 2;
fx destroy();
fx delete();
fx = undefined;


(not sure which of the last 3 lines work)
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#4
(09-19-2011, 18:14)AZUMIKKEL Wrote: fx = PlayFX("noobfx");
wait 2;
fx destroy();
fx delete();
fx = undefined;


(not sure which of the last 3 lines work)

delete works, = undefined won't delete it at all .. just make the variable undefined
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#5
Nice Smile
Short but sweet (Y)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  remove effects created with PlayFX? xplosiff 3 2,841 01-05-2012, 11:59
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.