Game Modding | Call of Duty: Black Ops 3 | Scripting
prtyboy76:
So I have tried many things in the past to play an fx on the zombies heads but it never worked I know it must be pretty simple but any help would be appreciated
functionzom_fire_head(localClientNum){self.head_fire_fx=PlayFXOnTag(localClientNum,"that fx from before",self,"j_head");}
!!!Add fx to zone
*didnt test*
Oh cool thank you and for the precache do i change anything with it and how do i add the fx in the zone
FrostIceforge:
Oh cool thank you and for the precache do i change anything with it and how do i add the fx in the zone
idk if you're using a custom FX or a Treyarch FX, but the built in 30x30 one might work.
To try it, make your precache line this:
#precache( "fx", "fire/fx_fire_barrel_30x30" );
When using a built in Treyarch FX, you shouldn't need to add it to zone.
If you're using your OWN FX, then in the zone do something like this:
fx,path/your_fire_fx.efx
Where your path is the series of folder names after BO3ROOT/share/raw/fx that leads to your efx file, and your_fire_fx.efx is of course the file name. Then precache like this:
#precache( "fx", "path/your_fire_fx" );
And note how you don't use the .efx suffix.
prtyboy76:
idk if you're using a custom FX or a Treyarch FX, but the built in 30x30 one might work.
To try it, make your precache line this:
#precache( "fx", "fire/fx_fire_barrel_30x30" );
When using a built in Treyarch FX, you shouldn't need to add it to zone.
If you're using your OWN FX, then in the zone do something like this:
fx,path/your_fire_fx.efx
Where your path is the series of folder names after BO3ROOT/share/raw/fx that leads to your efx file, and your_fire_fx.efx is of course the file name. Then precache like this:
#precache( "fx", "path/your_fire_fx" );
And note how you don't use the .efx suffix.
does the precache need to be at the top of csc and I also keep getting errors
FrostIceforge:
does the precache need to be at the top of csc and I also keep getting errors
It needs to be after your #using stuff at the top but before anything else. What kind of errors? Dump them here. We can't do anything if we don't know which errors they are.
prtyboy76:
It needs to be after your #using stuff at the top but before anything else. What kind of errors? Dump them here. We can't do anything if we don't know which errors they are.
It needs to be after your #using stuff at the top but before anything else. What kind of errors? Dump them here. We can't do anything if we don't know which errors they are.