AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Find player model entity (https://forums.alliedmods.net/showthread.php?t=210694)

naven 03-13-2013 12:32

Find player model entity
 
I tried this

new ent = find_ent_by_owner(-1,"player",id,0);

But it always returns 0. What I want to do is to make player crawl, I have a nice model that have swimming animation replaced by crawling, but model is floating above ground, while it should be on ground.

didoWEE 03-14-2013 13:57

Re: Find player model entity
 
Show the whole function or try with this:
PHP Code:

new id = -1;
new 
Float:origin[3];
entity_get_vector(entEV_VEC_originorigin);

while((
id find_ent_in_sphere(idorigin100.0)) != 0)
{
     
// do sth




All times are GMT -4. The time now is 21:47.

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