Spawn() public method

public Spawn ( ) : void
return void
Exemplo n.º 1
0
        public Entity GiveItem(string itemname)
        {
            Entity item = new Entity(itemname);

            if (item.IsNull)
            {
                return(null);
            }

            item.Origin      = Origin;
            item.Spawnflags |= (1 << 30);

            item.Spawn();

            item.Touch(this);

            return(item);
        }
Exemplo n.º 2
0
        public void StripUserWeapons()
        {
            Entity strip = new Entity("player_weaponstrip");
            strip.Spawn();
            strip.Use(this);
            strip.Remove();

            // TODO: set active weapon to 0
        }
Exemplo n.º 3
0
        public Entity GiveItem(string itemname)
        {
            Entity item = new Entity(itemname);

            if (item.IsNull) {
                return null;
            }

            item.Origin = Origin;
            item.Spawnflags |= (1 << 30);

            item.Spawn();

            item.Touch(this);

            return item;
        }