AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to check if player is in teleporter? (https://forums.alliedmods.net/showthread.php?t=105810)

KadiR 10-08-2009 16:02

How to check if player is in teleporter?
 
Is there a way to check if a player is in a teleporter (trigger_teleport) ? Maybe catch the player if the player touches the teleporter or something?

vitorrd 10-08-2009 16:05

Re: How to check if player is in teleporter?
 
You can probably check pev_classname at FM_Touch, although I'm not quite sure of it.

Arkshine 10-08-2009 16:24

Re: How to check if player is in teleporter?
 
register_touch( "trigger_teleport", "player", "CPlayer_TeleporterTouch" );

public CPlayer_TeleporterTouch ( const Teleport, const Player )
{

}


All times are GMT -4. The time now is 22:34.

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