UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Spawn Powerup

broken avatar :(
Created 8 years ago
by reckfullies
0 Members and 1 Guest are viewing this topic.
1,988 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
How would I go about spawning a powerup at a certain position in my script?

I've been looking through the _zm_powerups.gsc file and can't figure out which function spawns a specific powerup.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 4 October 2016
Last active: 7 years ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Xylozi's Groups
Xylozi's Contact & Social Links
The function specific_powerup_drop let's you spawn a power up the world at a specific origin.

Code Snippet
Plaintext
level thread zm_powerups::specific_powerup_drop( "nuke", origin );
Marked as best answer by reckfullies 8 years ago
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 7 March 2016
Last active: 7 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
deathy0909's Groups
deathy0909's Contact & Social Links
Code Snippet
Plaintext
//From _zm_powerups.gsc
//specific_powerup_drop( powerup_name, drop_spot, powerup_team, powerup_location, pickup_delay, powerup_player, b_stay_forever )

//Example use? I guess
level thread zm_powerups::specific_powerup_drop("full_ammo", origin);

 
Loading ...