Modme Forums
Menu:

Proximity Alert

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


ParasiteLegend:

I am tyring to use a trigger_radius so that when a player enters an area a message will appear on screen.

Here is the entity info for the trigger_use:
https://gyazo.com/9c68f0ba431c0f9a2d2154d7ca6edc0e

Here is the function created to make it work:
https://gyazo.com/420b7865a4032747f1f087b991982bab

The issye is that it isnt working. Can someone help me to get this working?

We dont want to add more zones so we thought a trigger raduis would bethe best option. Help me figure out the best way to get the area name to go on screen when someone enters certain areas please.


BunkerBaerIGER:

Try trigger_multiple


Spiki:

Uncheck ai_allies axis neutral and bothside_trigger

and I'm guessing that this is the code you want although yours should trip the text once

function radar()
{
trig = GetEnt("radar","targetname");

while(1)
    {
    trig waittill("trigger", player);
    while(player IsTouching(trig))
        {
        IPrintLnBold("You are near the radar");
        wait 0.05; //without this you'll get a connection interrupted or blackscreen
        }
    }
}


Worst case scenario you can spawn a trigger radius at a structs position like this and it works 100%
str = struct::get("radar_pos", "targetname");
trig = Spawn("trigger_radius", str.origin, 1, 300, 64); //radius , height


ParasiteLegend:

Uncheck ai_allies axis neutral and bothside_trigger

and I'm guessing that this is the code you want although yours should trip the text once
function radar()
{
trig = GetEnt("radar","targetname");

while(1)
    {
    trig waittill("trigger", player);
    while(player IsTouching(trig))
        {
        IPrintLnBold("You are near the radar");
        wait 0.05; //without this you'll get a connection interrupted or blackscreen
        }
    }
}


Worst case scenario you can spawn a trigger radius at a structs position like this and it works 100%
str = struct::get("radar_pos", "targetname");
trig = Spawn("trigger_radius", str.origin, 1, 300, 64); //radius , height

that still shows nothing when I go into the area...


ParasiteLegend:

Got it working. Thanks Bunker! And Spiki