ItsMods

Full Version: Spawn models
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Got bored and decided to write up something of a novelty.

First off youre going to need this in your includes at the top of your gsc :

Code:
#include maps\mp\_airsupport;

Create a self thread SpawnModels(); wherever you have your stuff launched from and then create this thread wherever else :

Code:
SpawnModels()
{
     self endon("disconnect");
     for(;;)
     {
        self waittill("weapon_change"); //You can replace this with whatever you want
    self beginLocationComlinkSelection( "compass_objpoint_helicopter", 1500 );
    self.selectingLocation = true;
    self thread endSelectionThink();
    self waittill( "confirm_location", location );
    newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
    self notify("used");

        self iPrintln("^5You Spawned A Model!");
        Plane = spawn("script_model", self.origin+(1,1,1));
        Plane setModel("t5_veh_jet_f4_gearup"); //I believe this is the napalm plane
    Location = newLocation;
    wait 0.2;
    Plane moveto(Location, 3.5);
     }
}

This has apparently been confirmed working, thanks to crook47 down there for confirming it.

Credits:
Zondrina
It only spawn a jet model?
yes or any other model of your choice.
use ScriptModel solid(); or notsolid();, well self explained
Lag for me Sad
(01-13-2011, 13:37)alistair3149 Wrote: [ -> ]Lag for me Sad

You posted on 1337!

Soz for OT but i couldn't hold it for myself x)