Raised This Month: $ Target: $400
 0% 

NPC Duck problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
spamipolito
Junior Member
Join Date: Jun 2018
Old 06-14-2018 , 18:43   Re: NPC Duck problem
Reply With Quote #7

Quote:
Originally Posted by CrazY. View Post
Try with entity_set_size instead.
No bro :/ . I already testing with entity_set_size :/. Anyway, i tried again.

This result:

Use this code in case ACTIVITY_DUCK:

PHP Code:
            new Float:vecMins[3];
            new 
Float:vecMax[3];
            
//new Float:VecSize[3]
    
            
vecMins Float:{-16.0, -16.0, -32.0};
            
vecMax Float:{16.016.018.0};
            
//VecSize = Float:{32.0, 32.0, 50.0};
    
            
entity_set_size(iEntvecMinsvecMax);
    
            
entity_set_vector(iEntEV_VEC_minsvecMins);
            
entity_set_vector(iEntEV_VEC_maxsvecMax); 
And case ACTIVITY_STAND:

PHP Code:
            new Float:vecMins[3];
            new 
Float:vecMax[3];
           
// new Float:VecSize[3]
    
            
vecMins Float:{-16.0, -16.0, -36.0};
            
vecMax Float:{16.016.036.0};
            
//VecSize = Float:{32.0, 32.0, 72.0};
    
            
entity_set_size(iEntvecMinsvecMax);
    
            
entity_set_vector(iEntEV_VEC_minsvecMins);
            
entity_set_vector(iEntEV_VEC_maxsvecMax); 
This result:

Ducking:



Standing up:
spamipolito 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 04:40.


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