Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: alexisloic21
I would like to know if its possible that a trigger is only shootable with the wunderwaffe?
ModmeBot:
Reply By: natesmithzombies
alexisloic21
I would like to know if its possible that a trigger is only shootable with the wunderwaffe?
Place a trigger>damage and use the following code on it in script to check the weapon causing the damage:
selfwaittill("damage",amount,attacker,direction_vec,point,type,tagName,modelName,partName,weapon,dFlags,inflictor,chargeLevel);if(weapon==GetWeapon("tesla_gun"))// change tesla_gun to whatever weapon you want
ModmeBot:
Reply By: alexisloic21
thanx ;D
good
ModmeBot:
Reply By: alexisloic21
I put this in the while(1)?
ModmeBot:
Reply By: natesmithzombies
alexisloic21I put this in the while(1)?
yes
ModmeBot:
Reply By: alexisloic21
I always have a problem when I put the line of code and I shoot with the wunderwaffe the template and the trigger can not be deleted