Raised This Month: $ Target: $400
 0% 

Entity movetype + Origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-02-2009 , 12:11   Entity movetype + Origin
Reply With Quote #1

It won't set the origin Z, with movetype follow and aiment
PHP Code:
entity_set_int(sprite_entEV_INT_movetypeMOVETYPE_FOLLOW)
entity_set_edict(sprite_entEV_ENT_aimentid ); 
With other works



PHP Code:
public Set_Sprite_Stun(id, const sprite[], Float:scaleistaskFloat:task_time, const classname[])
{
    new 
Float:fOrigin[3];
    
entity_get_vectoridEV_VEC_originfOrigin);

    new 
sprite_ent create_entity("env_sprite")

    
entity_set_string(sprite_entEV_SZ_classnameclassname)
    
entity_set_model(sprite_entsprite)


    
entity_set_intsprite_entEV_INT_rendermodekRenderTransAdd)
    
entity_set_floatsprite_entEV_FL_renderamt200.0 )
    
    
entity_set_floatsprite_entEV_FL_framerate22.0 )
    
entity_set_floatsprite_entEV_FL_scalescale )

    
DispatchSpawnsprite_ent )
    
entity_set_intsprite_entEV_INT_spawnflagsSF_SPRITE_STARTON)

    
fOrigin[2] += 70.0;

    
entity_set_vectorsprite_entEV_VEC_originfOrigin)

    
entity_set_int(sprite_entEV_INT_movetypeMOVETYPE_FOLLOW)
    
entity_set_edict(sprite_entEV_ENT_aimentid );


    if ( 
istask )
    {
        
set_task(task_time"End_Sprite_Stun"sprite_ent);
    }

__________________
xbatista is offline
Send a message via Skype™ to xbatista
 



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 22:37.


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