Posts
303
Respect
102Add +1
Forum Rank
Perk Hacker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
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 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)
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I need it not only for sounds
Double Post Merge: June 28, 2018, 06:15:54 am
I need it not only for sounds
Now I only see "struct_sound" what else do you need?
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
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.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
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