I'm trying to add a "script_struct" to the map without "radiant" using only the scripts but: this script does not work
help me fix it please :)
Okeey, 1: where is your main connected to? 2: I don't know if that soundcode works for your struct so maybe you have to use this: Struct_sound[0] playsound("soundName here");
Title: Re: script_struct scripts Need Help
Post by: ville88 on June 28, 2018, 06:15:33 am
I need it not only for sounds Double Post Merge: June 28, 2018, 06:15:54 am
Okeey, 1: where is your main connected to? 2: I don't if that soundcode works for your struct so maybe you have to use this: Struct_sound[0] playsound("soundName here");
You have to check in code reference if I am right about the parameter(s)
I need it not only for sounds
Title: Re: script_struct scripts Need Help
Post by: gympie6 on June 28, 2018, 06:20:03 am
I need to add a "script_struct" to a map supported by all "kvp" (example: riser spawner or sounds)
I lost the source of the map. and I need to add a couple of sounds and spawn for zombie riser as well as "script_struct" for the buyable barricade
Why the hell are you doing this by script? Things like these are already be played in other scripts. If you want to play sound on them you can better search for these entries and then do something. From what I read here you are doing double work? Show me more examples of what you really want.
Title: Re: script_struct scripts Need Help
Post by: ville88 on June 28, 2018, 12:00:29 pm
Why the hell are you doing this by script? Things like these are already be played in other scripts. If you want to play sound on them you can better search for these entries and then do something. From what I read here you are doing double work? Show me more examples of what you really want.
working example:
Title: Re: script_struct scripts Need Help
Post by: Harry Bo21 on June 28, 2018, 12:36:23 pm
A - you cannot spawn script structs (spawn struct is a ‘data structure’ )
B - assigning Kvps would do nothing anyway apart from assign stuff - that doesn’t just ‘make them work’
C - can’t play a sound on a struct - because it’s not an entity
Title: Re: script_struct scripts Need Help
Post by: ville88 on June 28, 2018, 01:04:41 pm