Hey guys, im here with a simple tutorial on how to add buyable powerups. This is what the end result should look like
So lets start with the script, open up your mapname.gsc located in root/usermaps/mapname/scritps/zm/mapname.gsc Make sure you dont open the CSC
Now somewhere at the top of the gsc, add this
At the bottom of the main function, add this
Now at the bottom of your gsc paste this
Now for the radiant part, all you need is two things, the trigger to buy the powerup and the script_struct for where the powerup will spawn. Make a trigger_use with this kvp Make a script_struct with this kvp
Im trying to find the mapname.gsc in usermaps. But I can't find it there, the only place where I find mapname.gsc is in the mods map. Does it still work then?
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
I know this is an old post but hoping someone will respond.
Is there a way to put a delay before the actual powerup spawns at the location? I want a delay to activate a sound then have it appear. This is what I have been trying but isnt working.
level.buyable_powerup_cost = 2500; // Cost for powerup level.buyable_powerup_delay = 10; //Delay before the powerup appears in seconds level.buyable_powerup_cooldown = 10; // Cooldown in seconds for buyable trigger in seconds
Line 2 is the line I put in for the delay.
Any help is appreciated
Thanks
EDIT: I figured it out. Dont know how to delete
Last Edit: January 07, 2020, 03:08:07 pm by BIGCountrysTV