Raised This Month: $ Target: $400
 0% 

Remove origins data from file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-04-2009 , 07:29   Re: Remove origins data from file
Reply With Quote #1

Quote:
Yes it will
Not it not, I've just set entitie's origin on where am I standing and it just floats on the air(also player stuck on that ent origin)...

PHP Code:
// Create entity
new Origin[3]
get_user_origin(idOrigin0)
Create_Items(Origin)

// Function
Create_Items(Origin[3])
{
    new 
Float:flOrigin[3]
    
IVecFVec(OriginflOrigin)
    
//    new Float:fGlowColors[3] = {255.0, 0.0, 20.0}
    
new item_ent create_entity("info_target")
    if(
pev_valid(item_ent))
    {
        
entity_set_string(item_entEV_SZ_classname"Item")
                
        
entity_set_int(item_entEV_INT_solidSOLID_BBOX)
        
entity_set_int(item_entEV_ENT_owner0)
//        entity_set_int(item_ent, EV_INT_renderfx, kRenderFxGlowShell)
//        entity_set_vector(item_ent, EV_VEC_rendercolor, fGlowColors)

        
drop_to_floor(item_ent)
        
entity_set_vector(item_entEV_VEC_originflOrigin)
        
        
entity_set_model(item_entg_w_item)
        
entity_set_size(item_entFloat:{-2.5, -2.5, -1.5}, Float:{2.52.51.5})

    }

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



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 15:13.


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