AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   entity 'idle' animation not playing. (https://forums.alliedmods.net/showthread.php?t=229559)

HLM 11-09-2013 20:31

entity 'idle' animation not playing.
 
Hello, I am adding new entities into my game, and have seen that dmc models have rotation built into their models! This is absolutely amazing!! Unfortunately.. I havent been able to get the model to play its animation, can someone tell me what im doing wrong please?

PHP Code:

        iEnt = -1;
        while( (
iEnt find_ent_by_class(iEnt"weapon_supershotgun")) !=0)
        {
            
//
            
entity_set_model(iEnt"models/dmc/g_shot2.mdl");
            
entity_set_size(iEntFloat:{-32.0, -16.024.0}, Float:{32.016.040.0})
            
entity_set_int(iEntEV_INT_solidSOLID_TRIGGER);
            
//animation stuff
            
entity_set_int(iEntEV_INT_sequence1);
            
entity_set_float(iEntEV_FL_frame0.0);
            
entity_set_float(iEntEV_FL_animtimehalflife_time());
            
entity_set_float(iEntEV_FL_framerate1.0);
        } 

Please note: to play with these models you will need dmc/models/g_shot2.mdl AND dmc/models/g_shot2T.mdl, if you dont have the 2nd model you will recieve an error about the missing model when trying to join a team (on player spawn)


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

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