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 (CheckIfEntityMax( iBox ) == false)
return false;
// move the box up 1000 unit
fPos[2] = fPos[2] + 1000;
TeleportEntity(iBox, fPos, fAng, NULL_VECTOR);
int box_model = g_iBoxType;