Raised This Month: $ Target: $400
 0% 

How to check non-player entity is stuck?


Post New Thread Reply   
 
Thread Tools Display Modes
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
bibu
Veteran Member
Join Date: Sep 2010
Old 05-05-2013 , 13:48   Re: How to check non-player entity is stuck?
Reply With Quote #2

Try it out?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Reply


Thread Tools
Display Modes

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