Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: Scorpiolo
Hi, any chance somebody could do me a script so that when I shoot the trigger damage, it only activates if shot with a specific weapon or it's pack a punch varient. Also how I could have another trigger only activated by grenade damage.
Thanks
ModmeBot:
Reply By: easyskanka
could i piggyback onto this post and also ask how to give a shootable trigger a certain amount of HP before activating?
ModmeBot:
Reply By: JayZM
easyskanka
could i piggyback onto this post and also ask how to give a shootable trigger a certain amount of HP before activating?
ModmeBot:
Reply By: mathfag
#using scripts\codescripts\struct;
#using scripts\zm\_zm_powerups;
function wunder_perk()
{
desiredweapon = getWeapon("tesla_gun"); // Weapon you want the player to have when shot
trig = getent("mee_wunder_perk", "targetname");
trig waittill( "trigger", player );
current_weapon = player getCurrentWeapon();
while(1)
{
if( current_weapon == desiredweapon )
{
iprintlnbold("Shot with wunderwaffe");
perk_struct = struct::get("wunder_perk_struct", "targetname");
zm_powerups::specific_powerup_drop("free_perk", perk_struct.origin);
iprintlnbold("perk spawn");
trig Delete();
}
else
{
iprintlnbold("not wunderwaffe");
level thread wunder_perk();
}
break;
}
}