View Single Post
pride95
Senior Member
Join Date: Aug 2015
Old 02-18-2018 , 17:35   Re: VecMins, VecMaxs func_hostage_rescue
Reply With Quote #3

PHP Code:

    float fPosition
[3]; 
    
float fMins[] = {-200.0, -200.0, -200.0};
    
float fMaxs[] = {200.0200.0200.0};
    
GetEntPropVector(iClientProp_Send"m_vecOrigin"fPosition);

    
int ent CreateEntityByName("func_hostage_rescue");
    
DispatchKeyValue(ent"spawnflags""257");
    
DispatchKeyValueVector(ent"origin"fPosition);

    
DispatchSpawn(ent); 
    
ActivateEntity(ent);
    
    
SetEntPropVector(entProp_Send"m_vecMins"fMins);
    
SetEntPropVector(entProp_Send"m_vecMaxs"fMaxs);
    
SetEntProp(entProp_Send"m_nSolidType"2); 
the zone is still just my position, an 3d point. the vecmins and vecmaxs doesn't works for func_hostage_rescue or func_buyzone.

am i doing something wrong?
pride95 is offline