Raised This Month: $ Target: $400
 0% 

How to check non-player entity is stuck?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 05-05-2013 , 13:23   How to check non-player entity is stuck?
Reply With Quote #1

Does it work for non-player entity?
PHP Code:
// Check if a player is stuck (credits to VEN) 
stock is_player_stuck(id

    static 
Float:originF[3
    
pev(idpev_originoriginF
    
    
engfunc(EngFunc_TraceHulloriginForiginF0HULL_???, id0
    
    if (
get_tr2(0TR_StartSolid) || get_tr2(0TR_AllSolid) || !get_tr2(0TR_InOpen)) 
        return 
true
  
    return 
false

Could anyone answer me?
Thanks in advance
11922911 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 10:45.


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