Raised This Month: $ Target: $400
 0% 

"trigger_push" following player.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 11-26-2011 , 15:38   "trigger_push" following player.
Reply With Quote #1

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.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 11-26-2011 at 16:57.
rodrigo286 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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