Posts
306
Respect
71Add +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!Just as the error says, you didn't initialize the variable player.
There are 2 ways you can do this depending on who you want to give the perk to.
All Players:Spoiler: click to open...[close]
Only the players that shot a shootable:
First, go into each of the shootable functions and change them to this:Spoiler: click to open...[close]
then change the shootables_done function to this:Spoiler: click to open...[close]
Thanks but I have try to use the "All Players" script but I got this error when I launching the game :
(Image removed from quote.)
I've already seen this being talked about. I'm very very new to all this and was wondering how I'd go about making this script open a door if anyone can help me this would mean a lot to me and others.
Haven't test this but it should work. Just do reckfullies tutoral at the top of the forum and just add one more script model with a targetname "shootable_model_3" and a trigger damage with the targetname "shootable_trig_3" then add your door make it a script modle and add the targetname "door_power". Finally, this should work but it will not say your entering the zone so if you want zombies to spawn in your power room you might have to have someone easle help you with that.
Haven't test this but it should work. Just do reckfullies tutoral at the top of the forum and just add one more script model with a targetname "shootable_model_3" and a trigger damage with the targetname "shootable_trig_3" then add your door make it a script modle and add the targetname "door_power". Finally, this should work but it will not say your entering the zone so if you want zombies to spawn in your power room you might have to have someone easle help you with that.
You must have messed something up when copying or something, the function I gave you shouldn't be causing this.
Check line 30 of that script and if you cant figure it out just post the whole script here and Ill look at it
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. |
Trying to get audio to play when a trigger has been shot tried everything. Sorta like the EE from The Giant.
EDIT: Figured it out
Add this to the top of the script:
Then add this to the shootable_done function:
Just replace "powerupname" with the code name of the powerup.
Avaliable Powerups:Spoiler: click to open...
- bonfire_sale
- carpenter
- double_points
- fire_sale
- free_perk
- full_ammo
- insta_kill
- shield_charge
- weapon_minigun
- ww_grenade
[close]
Then make origin the origin you want the powerup to spawn at.
Example:
im getting this error?
^1}
^1^
^1ERR(6E) scripts/custom/shootable.gsc (157,1) : Compiler Internal Error : Unresolved external 'zm_powerups::specific_powerup_drop'
im getting this error?
^1}
^1^
^1ERR(6E) scripts/custom/shootable.gsc (157,1) : Compiler Internal Error : Unresolved external 'zm_powerups::specific_powerup_drop'
Wrong perk reference
It's the specialty name you must use
Think for widows it's either
"Specialty_widowswine"
If not its
"Specialty_widows_wine"
Check the zm_perks gsh for the list
The other you've used is just a variable
I would just like to state that using PERK_WIDOWS_WINE will not affect the outcome. Also it is "specialty_widowswine" which is also defined by PERK_WIDOWS_WINE.
His problem was inside the loop.
I have fixed the code so if you wish to replace the function you can do.
Also question for OP, out of curiosity why did you add a loop into shootables_done?
I would just like to state that using PERK_WIDOWS_WINE will not affect the outcome. Also it is "specialty_widowswine" which is also defined by PERK_WIDOWS_WINE.
His problem was inside the loop.Spoiler: click to open...[close]
I have fixed the code so if you wish to replace the function you can do.
Also question for OP, out of curiosity why did you add a loop into shootables_done?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |