Raised This Month: $51 Target: $400
 12% 

Solved VecMins, VecMaxs func_hostage_rescue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pride95
Senior Member
Join Date: Aug 2015
Old 02-09-2018 , 14:45   VecMins, VecMaxs func_hostage_rescue
Reply With Quote #1

PHP Code:
    float fPosition[3];
    
GetClientAbsOrigin(iClientfPosition); 

    
int ent CreateEntityByName("func_hostage_rescue");
    
DispatchKeyValue(ent"targetname""fake_hostage_rescue");
    
DispatchKeyValueVector(ent"origin"fPosition);

    
DispatchSpawn(ent);
    
ActivateEntity(ent);

    
float fMins[] = {-100.0, -100.0, -100.0};
    
float fMaxs[] = {100.0100.0100.0};
    
    
SetEntPropVector(entProp_Send"m_vecMins"fMins);
    
SetEntPropVector(entProp_Send"m_vecMaxs"fMaxs); 
the entity is created, but the zone is represented just by the origin.
how can i set vecmins and vecmaxs to this entity with dispatchkeyvalue

Last edited by pride95; 02-19-2018 at 09:53.
pride95 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 11:42.


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