AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entites!! (https://forums.alliedmods.net/showthread.php?t=173112)

raghunarnindi001 11-30-2011 10:25

Entites!!
 
I want help for the following things:

1. how to know when two players collide
2. i want the buttons pressed by the player ... ( forward , backward .... etc)


Thank que.

SpeeDeeR 11-30-2011 10:52

Re: Entites!!
 
1.
Code:

register_touch ( Toucher[], Touched[], function[] )
2.
PHP Code:

#define IN_MOVEMENT ( IN_FORWARD | IN_MOVELEFT | IN_MOVERIGHT | IN_BACK )  

register_forward(FM_CmdStart,            "FwdCmdStart");  

public 
FwdCmdStart(idhandle)
{
    new 
buttons =    get_uc(handleUC_Buttons);           
    if( ( 
buttons IN_MOVEMENT ) )    
    {        
    
//player moves   
    
}




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

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