AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity disappears after using aiment. (https://forums.alliedmods.net/showthread.php?t=195997)

ahujenas 09-14-2012 03:14

Entity disappears after using aiment.
 
Hey, i'm coding this new aura "thingie" for ESF, and I have no idea why does my aura disappears after adding:

entity_set_edict( bAura[id], EV_ENT_aiment, id );

rest of the code looks like this:

Code:

new bAura[ 33 ];
new const bAuraModel[ ] = "models/evolution/Auras/shape_01.mdl";
bAura[ id ] = create_entity( "env_model" );
entity_set_model(bAura[id],bAuraModel);
entity_set_int( bAura[id], EV_INT_movetype, MOVETYPE_FOLLOW );
entity_set_edict( bAura[id], EV_ENT_aiment, id );

Everything works fine without using the ENT_aiment, but after I add the line, my aura disappears >.<, I need the aura to follow the person and I can't do it :(


All times are GMT -4. The time now is 08:22.

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