Modme Forums
Menu:

Trigger activated by model

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


ModmeBot:

Thread By: mathfag

So I'm making a mini easter egg. Basically you have to shoot a ball in to a goal to get 1000 pts. How do I do this?

I'm using a trigger multiple.

This is what i have so far:

#using scripts\zm\_zm_score;


 

function init()
{

 
    level thread yoga_ball();


}




function yoga_ball(players)
{
    trig = GetEnt("mee_yoga_ball_trig", "targetname");
    model = GetEnt("mee_yoga_ball", "targetname");


    trig SetHintString("");
    trig SetCursorHint("HINT_NOICON");
 
    while(1)
    {
        trig waittill("trigger", model);
 
        players zm_score::plus_to_player_score(1000);
        IPrintLn("Goal!");
        PlaySoundAtPosition("goal", self); 
 
        break;
    }
 
    trig Delete();

}