Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: Bac0NM0nst3r on October 24, 2020, 02:49:35 am
Title: making the player say a line when a powerup is picked up
Post by: Bac0NM0nst3r on October 24, 2020, 02:49:35 am
Hello, i recently added in a custom powerup into my map by breaking someone else's custom power up (whoops). It works fine, but i would like to make the player say the quote as if the player picked up a max ammo powerup when they picl up my custom power up. How would i go about doing that?
Title: Re: making the player say a line when a powerup is picked up
Post by: gympie6 on October 25, 2020, 10:39:47 pm
Nice you stole someone his powerup (Atleast credit the guy you stole it from) but I will help with the sound:
I guess at the beginning you add this?: add_zombie_powerup( "CUSTOM PERK NAME", "MODEL", "TEXT");
Then you need to find this: powerup_grab()
In the method you see this: change it to this: And you are done.
Thanks! and whoops, didnt know i shouldve credited outside a map post. I broke Gogeta's death machine powerup and somehow edited it to be an unlimited ammo powerup, now if i can just learn how to put images onto my posts because im ready to relesase a map now...