Modme Forums

trigger multi

Game Modding | Call of Duty: Black Ops 3 | Scripting


vertdex:

please from your help to reset a trigger to function again after every round or time, so the same action repeats when player hits on trigger again?

function brutus_TriggerSpot()
{
   amount = 3;
   triggger = GetEnt("brutusTrig","targetname");
   triggger waittill("trigger");

for( i=0;i<amount;i++ )
    {
    brutus::spawn_brutus();   
    }
}


Spiki:

please from your help to reset a trigger to function again after every round or time, so the same action repeats when player hits on trigger again?

function brutus_TriggerSpot()
{
   amount = 3;
   triggger = GetEnt("brutusTrig","targetname");
   triggger waittill("trigger");

for( i=0;i<amount;i++ )
    {
    brutus::spawn_brutus();  
    }
}

function brutus_TriggerSpot()
{
while(1)
    {
    amount = 3;
    triggger = GetEnt("brutusTrig","targetname");
    triggger waittill("trigger");

    for( i=0;i<amount;i++ )
        {
        brutus::spawn_brutus();   
        }
    level waittill("between_round_over");
    }
}


vertdex:

function brutus_TriggerSpot()
{
while(1)
    {
    amount = 3;
    triggger = GetEnt("brutusTrig","targetname");
    triggger waittill("trigger");

    for( i=0;i<amount;i++ )
        {
        brutus::spawn_brutus();  
        }
    level waittill("between_round_over");
    }
}


Spiki thanks, it spawns now after the round end but without being triggered by the player, like the first time requires.
how can the trigger require activation again before they spawn? so everytime the player has to activate the trigger for them to spawn.