Modme Forums

[HELP] FX isnt playing

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: RickyD
Im having trouble playing fx in script files.



Using:





playfx( {EFFECT}, self.origin );





doesnt work



I try precaching like so:





#precache( "fx", "_t6/maps/zombie/fx_zombie_bar_break" );





which does nothing...



am i missing something?


ModmeBot:

Reply By: natesmithzombies
This is how I do it:



At the top of the script outside of the main function:

#define KINO_SWIRL "_NSZ/Kino_Tele/kino_swirl" 
#precache( "fx", KINO_SWIRL ); 



Then I do:

playfx( KINO_SWIRL, level.black_spots_targets[player_num].origin ); 





You also need to include the fx in your zone file:

fx,_NSZ/Kino_Tele/kino_swirl


ModmeBot:

Reply By: RickyD

natesmithzombiesThis is how I do it:



At the top of the script outside of the main function:

#define KINO_SWIRL "_NSZ/Kino_Tele/kino_swirl" 
#precache( "fx", KINO_SWIRL ); 



Then I do:

playfx( KINO_SWIRL, level.black_spots_targets[player_num].origin ); 





You also need to include the fx in your zone file:

fx,_NSZ/Kino_Tele/kino_swirl





It didn't work ;/



Can you edit main gsc files? because im trying to put it in blockers.gsc



EDIT: NVM i figured out the problem! - thanks


ModmeBot:

Reply By: natesmithzombies

RickyD

It didn't work ;/



Can you edit main gsc files? because im trying to put it in blockers.gsc



EDIT: NVM i figured out the problem! - thanks


Nice! Could you let us know what it was? Might help a future user


ModmeBot:

Reply By: RickyD

natesmithzombies
RickyD

It didn't work ;/



Can you edit main gsc files? because im trying to put it in blockers.gsc



EDIT: NVM i figured out the problem! - thanks


Nice! Could you let us know what it was? Might help a future user


So if two entitities have the same targetname or if you don't include a time delay during a while loop you get uncaught errors which break the script.