Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: KillJoyYT
if I could get some help on this that would be sweet thank you guys
function down_player_func1()
{
// Finding the trigger in map
damaging_trigger1 = getEnt("damaging_trigger1", "targetname");
// Text that you want to show on trigger
damaging_trigger1 setHintstring("");
damaging_trigger1 SetCursorHint("HINT_NOICON");
while(1)
{
// Wait for player to hit it
damaging_trigger1 waittill("trigger", player);
// Kill the player
player doDamage( player.health + 666, player.origin );
}
}
function down_player_func2()
{
// Finding the trigger in map
damaging_trigger2 = getEnt("damaging_trigger2", "targetname");
// Text that you want to show on trigger
damaging_trigger2 setHintstring("");
damaging_trigger2 SetCursorHint("HINT_NOICON");
while(1)
{
// Wait for player to hit it
damaging_trigger2 waittill("trigger", player);
// Kill the player
player doDamage( player.health + 666, player.origin );
}
}
ModmeBot:
Reply By: mathfag
If I understand correctly you want someone to trigger the trigger and everyone dies.
while(1)
{
// Wait for player to hit it
damaging_trigger1 waittill("trigger", player);
// Kill the player
foreach(player in GetPlayers())
player DoDamage( player.health + 666, player.origin );
}
ModmeBot:
Reply By: KillJoyYT
yes man exactly what im looking for! il'll try this thank you!!!!!!!!!