Modme Forums

Best way to include fx in map?

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


ModmeBot:

Thread By: modric
According to the wiki, loaded fx such as powerup grabbed fx are preloaded and dont need to be precached or anything in your maps gsc, zone etc. What about for fx found in radiant such as fire/fx_fire_ground_rubble_50x50? I have seen a bunch of different approaches to adding a radinat fx into your map through scripting, but what is the best/fastest way to having scripted fx's found in radiant?


ModmeBot:

Reply By: Symbo
In zone load the fx:

fx,path_of_the_fx

In your gsc, after the usings, precach the fx:
#precache( "fx", "path_of_the_fx");

Then different method to play it:

PlayFX(<path_of_the_fx>,<position>,[forward],[up],[ignore pause]);
//or
PlayFXOnTag(<path_of_the_fx>,<entity>,<tag>,[ignore pause]);</tag></entity></path_of_the_fx></position></path_of_the_fx>

the "path_of_the_fx" would be in your case "fire/fx_fire_ground_rubble_50x50"


ModmeBot:

Reply By: modric
Thanks, it seems every tutorial over complicates it, I will use this method from now on