UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: reckfullies on October 13, 2016, 05:05:18 pm

Title: Spawn Powerup
Post by: reckfullies on October 13, 2016, 05:05:18 pm
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.
Title: Re: Spawn Powerup
Post by: Xylozi on October 13, 2016, 06:09:11 pm
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 );
Title: Re: Spawn Powerup
Post by: deathy0909 on October 14, 2016, 12:16:17 am
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);