• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Spawn models
#1
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
  Reply
#2
It only spawn a jet model?
[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#3
yes or any other model of your choice.
use ScriptModel solid(); or notsolid();, well self explained
  Reply
#4
Lag for me Sad
[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#5
(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)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Spawning Solid Models akillj 5 3,933 09-08-2013, 00:07
Last Post: akillj
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,368 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Spawn Message Playing on Respawn? Killjoy 7 4,740 07-11-2013, 14:53
Last Post: Killjoy
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,412 06-27-2013, 13:35
Last Post: Yamato
  [C# xna 4] 3d models or vertices array narkos 5 3,969 06-25-2013, 08:14
Last Post: narkos
  [Release] Spawn Polygons and Pyramids Yamato 6 4,136 06-20-2013, 12:30
Last Post: Yamato
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,045 06-04-2013, 01:54
Last Post: rotceh_dnih
  [Release] Export models from Call Of Duty : Black Ops JariZ 26 32,378 05-16-2013, 17:20
Last Post: mosayebg
  How to get models working? Erik The Born 2 2,825 04-28-2013, 08:19
Last Post: Erik The Born
  Player models McKinleySPB 1 2,564 04-26-2013, 17:36
Last Post: Nekochan

Forum Jump:


Users browsing this thread: 1 Guest(s)