UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How does this MWR trigger work? GSC

broken avatar :(
Created 5 months ago
by Runis
0 Members and 1 Guest are viewing this topic.
181 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 April 2015
Last active: 1 month ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Runis's Groups
Runis's Contact & Social Links
Within Black ops 3 i'm trying to make a trigger just like this from the MWR shooting range. Trigger_multiple being activated when touched which starts an event, but can be canceled and reset at anytime during the event. I'm not a programmer so I've had a hard time reading random gsc files.
 

 
 
This is what I copied from some bo3 gsc files I read through which does activate only when I touch it, but i'm stumped on what to do when I leave the trigger. How do I know the player left it, and how would I stop a loop or function at anytime?
 
detected_touch
Plaintext
function detect_touched(trig)
{
    while ( true )
    {
        trig waittill( "trigger" );
        trig.script_touched = true;
        return;
    }
}

Incase you were wondering I only copied the function because I didn't know how to call it from another file.
Last Edit: January 14, 2025, 10:57:26 pm by Moderator (Approval)

 
Loading ...