Raised This Month: $ Target: $400
 0% 

Sweep entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Komap
New Member
Join Date: Dec 2018
Old 12-27-2018 , 09:55   Sweep entity
Reply With Quote #1

Hi everyone. How I can do my entity sweep like doors and etc. Part of code (And yes, idk how to set size without fm) ->
Code:
new iEntity = rg_create_entity("info_target");

    if(!iEntity)
        return 0;

    set_entvar(iEntity, var_classname, szClassname[0]);
    set_entvar(iEntity, var_movetype, MOVETYPE_NONE);
    set_entvar(iEntity, var_origin, fOrigin);
    set_entvar(iEntity, var_body, body);
    set_entvar(iEntity, var_model, szModels[0])
    set_entvar(iEntity, var_modelindex, gMdlIndex_Tree)
    set_entvar(iEntity, var_solid, SOLID_BBOX);
    engfunc(EngFunc_SetSize, iEntity, Float:{-26.0, -26.0, -1.0}, Float:{26.0, 26.0, 200.0});
    return iEntity;
P.s I hope its possible to understand and sorry about bad English
Komap is offline
 



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 07:35.


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