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
functionradar(){trig=GetEnt("radar","targetname");while(1){trigwaittill("trigger",player);while(playerIsTouching(trig)){IPrintLnBold("You are near the radar");wait0.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%
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
functionradar(){trig=GetEnt("radar","targetname");while(1){trigwaittill("trigger",player);while(playerIsTouching(trig)){IPrintLnBold("You are near the radar");wait0.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%