• Welcome Guest, The new Modme forums are here! Please visit here for all recommended information.

Answered Proximity Alert

ParasiteLegend

New member
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:

Here is the function created to make it work:

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.
 

Spiki

Well-known member
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
C:
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%
C-like:
str = struct::get("radar_pos", "targetname");
trig = Spawn("trigger_radius", str.origin, 1, 300, 64); //radius , height
 

ParasiteLegend

New member
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
C:
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%
C-like:
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...
 
Top