[ZSCRIPT] Dynamically change player soundclass
Posted: Fri Nov 09, 2018 3:37 pm
I don't know if this is possible yet but every time I do this it throws out an error:
Code:
Error:
I also tried with PlayerPawn.SoundClass instead of Player.SoundClass but it says that it isn't possible to change the context:
Anyone knows why this throws out errors? I have searched for about an hour and I still can't find a solution.
Code:
Code: Select all
TNT1 A 0 { Player.SoundClass = "billplayer"; }
Code: Select all
Script error, "FNAF_Core.pk3:zscript.txt" line 48:
Unknown identifier 'SoundClass'
Code: Select all
Script error, "FNAF_Core.pk3:zscript.txt" line 48:
Unable to access 'PlayerPawn.SoundClass' in a static context