View Single Post
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-30-2022 , 11:39   Re: [L4D2] CSO SupplyBox (v1.3, 2022-9-14)
Reply With Quote #18

Quote:
Originally Posted by kahdeg View Post
If i want to simulate the "drop", can i change the height of the spawned box and will it drop?

edit:
this work for me https://www.youtube.com/watch?v=hnXmpfuAwS0
PHP Code:
bool SpawnBox(float fPos[3], float fAng[3] = NULL_VECTOR)
{
    
int iBox CreateEntityByName("prop_physics");
    if (
CheckIfEntityMaxiBox ) == false)
        return 
false;
    
    
// move the box up 1000 unit
    
fPos[2] = fPos[2] + 1000;
    
    
TeleportEntity(iBoxfPosfAngNULL_VECTOR);
    
    
int box_model g_iBoxType
Yes you can, but I remind you, if inside the house, box could stuck in ceilling
__________________
HarryPotter is offline