Here is a little snippet I made while I was exploring _airdrop.gsc:
Code:
carePackageFall()
{
self endon("death");
self endon("disconnect");
self notifyOnPlayerCommand( "3", "+actionslot 3" ); //Change this to whatever suits you
for(;;)
{
self waittill("3");
self iPrintLnBold("Watch your head!...");
dropCrate = spawn( "script_model", (self.origin+(0,0,200)) );
dropCrate setModel( "com_plasticcase_enemy" );
dropCrate CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 2; //How long before it falls from the sky
dropCrate PhysicsLaunchServer( self.origin, (0,0,0) ); //Replace 0,0,0 with how much fling or twist you want
dropCrate Unlink();
}
}
You can replace self.origin to a specific location if you need to
Also, if you want the carepackage to disappear after it's fallen, add:
Code:
wait 2;
dropCrate delete();
NOTE: This is not usable, it's just to play around with.....