AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player getting to a special area on the map (https://forums.alliedmods.net/showthread.php?t=41121)

Obbin 07-09-2006 15:04

Player getting to a special area on the map
 
I want to check when a players comes close to lets say Origin 0, 0, 0.
How do I do this without checking the origin in Client_Post/PreThink (I don't want to use the Think's at all)?

Thanks!

Rolnaaba 07-09-2006 15:09

Re: Player getting to a special area on the map
 
hawk552's tutorial on finding entitys can be found HERE

Obbin 07-09-2006 15:13

Re: Player getting to a special area on the map
 
How could I use this with a function that triggers if the user comes close to 0, 0, 0 without looping/checking with a task/Post or PreThink?

Thanks

Rolnaaba 07-09-2006 15:17

Re: Player getting to a special area on the map
 
no idea lol, y not just use looping?

Obbin 07-09-2006 15:27

Re: Player getting to a special area on the map
 
It takes a lot of recources :/

Shurik3n 07-09-2006 15:31

Re: Player getting to a special area on the map
 
You could make an entitiy, for example 50x50x50, and more it to 0, 0 ,0. Then register_touch with the player and the entity. So if they get withing 50 units of 0, 0, 0 it will call the touch function.

Obbin 07-09-2006 15:33

Re: Player getting to a special area on the map
 
Thx! When I have figured how to create a 50x50x50 ent I edit!


All times are GMT -4. The time now is 08:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.