Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: KillJoyYT
not sure how I change code above ^ so that you have to shoot the object instead of holding f for the trigger to kill you.
already tried changing ("trigger", player) to ("damage", player) and also just ("damage")
when I link it with damage it tells me the "player" is an uninitialized local variable.
I'm assuming I need to change something on the line where you kill the player as well?
ModmeBot:
Reply By: mathfag why don't you just add a damage trigger to the spot? It won't trigger until you do the waittill("damage")
ModmeBot:
Reply By: KillJoyYT yes I've already tried this.. doesn't kill me when I shoot the trig_dmg
ModmeBot:
Reply By: mathfag
KillJoyYT yes I've already tried this.. doesn't kill me when I shoot the trig_dmg
Because you wrote ("damage", player) which is wrong as hell
I haven't tested this but it went through the linker and should work:
ModmeBot:
Reply By: KillJoyYT ok so that dmg would be 250 but what would the attacker variable be??
ModmeBot:
Reply By: mathfag
KillJoyYT ok so that dmg would be 250 but what would the attacker variable be??
The player that shoots the trigger...
ModmeBot:
Reply By: KillJoyYT not running through the linker.... what am I doing wrong here?
trig_dmg waittill ("damage", 250, player);
didn't link either
ModmeBot:
Reply By: mathfag
KillJoyYT not running through the linker.... what am I doing wrong here? function down_player_func1() { trig_dmg = GetEnt("damage_trig","targetname"); trig_use = GetEnt("use_trig","targetname"); trig_use SetHintString("Swiggity swooty"); trig_use SetCursorHint("HINT_NOICON"); trig_use waittill("trigger", player); { trig_dmg waittill("damage", player); if(attacker != player) //if you want the same player to hit F and shoot keep this otherwise comment BOTH lines continue; attacker DoDamage(attacker.health+666,attacker.origin); } } trig_dmg waittill ("damage", 250, player); didn't link either
ffs
you can't do
when you damage a damage trigger it always returns this