AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with MOVETYPE_FOLLOW's entities (https://forums.alliedmods.net/showthread.php?t=159404)

fearAR 06-16-2011 17:32

Problem with MOVETYPE_FOLLOW's entities
 
Well, I come here, because I have made a plugin where all players when join sv can change their appearences.

So, I set a model for player, without head, and then I create 4 entities which follow player, with this part:

PHP Code:

CreateEntity(entidszModelEnt[]) {    
    
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))
    if(
ent 0) {
        
set_pev(entpev_movetypeMOVETYPE_FOLLOW)
        
set_pev(entpev_aimentid)
        
set_pev(entpev_rendermodekRenderNormal)
        
engfunc(EngFunc_SetModelentszModelEnt)
    }    


but when I set him that entities it works, but Player looks like breathing fast, so his sequence is working fast, but It happens only when I set this entities and I dont know why it happens...

Can someone help me? Thanks


All times are GMT -4. The time now is 23:24.

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