Raised This Month: $ Target: $400
 0% 

Unable to detect entity touch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-24-2013 , 09:22   Unable to detect entity touch
Reply With Quote #1

Hello everybody,

I try to make the jumppads from Ricochet Maps working in Counter-Strike using this code here :

PHP Code:
public pfn_touch(ptrptd)
{
    
client_print(ptdprint_chat"Touch detected!")
    new 
szClassname[32]
    
entity_get_string(ptrEV_SZ_classnameszClassname31)
    
    if(
equali(szClassname,"trigger_jump"))
    {
        
client_print(0print_chat"Touched trigger_jump")
        new 
Float:velocity[3];
    
        
entity_get_vector(ptdEV_VEC_velocityvelocity);
        
velocity[2] = 500.0;                
        
entity_set_vector(ptdEV_VEC_velocityvelocity);
    
        
entity_set_int(ptdEV_INT_gaitsequence6);  
    }

But it always shows me only the first message, the second gets never called.
This Code proofs that they are trigger_jump entitys.

PHP Code:
public func_SearchEntity(id)
{
    new 
ent = -1
    
while((ent find_ent_by_class(ent"trigger_jump")))
    {
        
client_print(idprint_chat"trigger_jump found!")
    }

Anyone knows what I'm doing wrong?
__________________
Kia 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 06:28.


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