Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: vinnyz500 on March 29, 2015, 12:34:32 am
Title: Adding delay to scavenger script
Post by: vinnyz500 on March 29, 2015, 12:34:32 am
Hey UGX, i got a script from rorkes weapon pack with the scavenger script in it and the FX plays immediatly rather than waiting 2.5s. How would i fix this? i see a code for it to wait but it doesnt seem to want to... Here is the code (i know its sloppy thats how it came :( but it doesnt work...
EDIT: shit so sorry i put in wrong section, if you could move it to scripting i would appreciate it :)
Title: Re: Adding delay to scavenger script
Post by: Harry Bo21 on March 29, 2015, 01:01:25 am
moved and fixed your code box
From what i see, theres no reason it shouldnt wait. Should be working fine
Title: Re: Adding delay to scavenger script
Post by: HitmanVere on March 29, 2015, 01:05:44 am
FX is played through weapon file. Remove it from there and then add FX in mod.csv
Title: Re: Adding delay to scavenger script
Post by: vinnyz500 on March 29, 2015, 03:23:13 am
Title: Re: Adding delay to scavenger script
Post by: jjbradman on March 29, 2015, 05:40:16 am
what he meant was to remove the fx from the weaponfile and then in watch for sniper bolt function add the desired wait like "3 secs" then check in the "scvgr_explode(point)" function the line where fx is played and add that fx to your mod.csv.
ps.nevermind i was lazy to read the code, it seems to be fine so just do the weaponfile thing and ignore my post :P
Title: Re: Adding delay to scavenger script
Post by: Rorke on March 29, 2015, 10:01:20 am
what exactly are you having issues with? if its the fx being played at wrong time then smasher said he tried to fix it but he cdnt see anything wrong so it went un-fixed as for the weapon file well do what you want........
Title: Re: Adding delay to scavenger script
Post by: HitmanVere on March 29, 2015, 10:04:58 am