AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   "trigger_push" following player. (https://forums.alliedmods.net/showthread.php?t=172848)

rodrigo286 11-26-2011 15:38

"trigger_push" following player.
 
I need this "trigger_push" follow the player who created it, "trigger_push" is created works but does not follow the player.

PHP Code:

public Action:Create(clientargs

    new 
Float:playerpos[3];  
    
GetEntPropVector(clientProp_Send"m_vecOrigin"playerpos);  

    
entindex CreateEntityByName("trigger_push"); 
    if (
entindex != -1)  
    {  
        
DispatchKeyValue(entindex"pushdir""0 90 0");  
        
DispatchKeyValue(entindex"speed""500");  
        
DispatchKeyValue(entindex"spawnflags""64"); 
        
DispatchKeyValue(iEnt"parentname""client");    
    } 

Thanks.

#EDIT

Sorry my topic was in SourceMod and posted here by mistake.

Thanks.


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

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