View Single Post
kahdeg
Junior Member
Join Date: Oct 2021
Old 09-30-2022 , 02:07   Re: [L4D2] CSO SupplyBox (v1.3, 2022-9-14)
Reply With Quote #17

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

Last edited by kahdeg; 09-30-2022 at 08:38.
kahdeg is offline