Creating a spawnlist in the NPCS section

A Forum Thread for Garry's Mod 13

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending H72david points.
  • Post: Give H72david your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

Hello i made a NPC.
the name is NPC_HumanDestroyer
i can spawn him using Console commands but i can't find him in the NPCS section in the spawn menu
How can i create a special Spawnlist just for that NPC? Any idea?

it has the default Half-Life 2 shotgun as his weapon... And is based on Combine's AI

I am new to Garry's Mod i hope somebody will help me !

Posts

  • 1y
    MarioDox avatar
    Mario's Company Flag Affiliation: Mario's Company
    Member Joined 3y
    3,500 points Ranked 1334th
    25 medals 4 rare
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 50 Skins Medal icon
    • Became a Game Pioneer Medal icon
    • Reached 1,000 Points Medal icon
    • One month a member Medal icon
    MarioDox avatar
    MarioDox
    Mario's Company Flag
    Mario's Company
    list.Set( "NPC", "NPC_HumanDestroyer", { 
    Name = "Human Destroyer",
    Class = "NPC_HumanDestroyer",
    Category = "Category"
    })

    just put it where you want. In the npc's code will also work.
  • 1y
    H72david avatar
    H72david Offline
    Member Joined 2y
    674 points Ranked 6763rd
    Posted by MarioDox

    list.Set( "NPC", "NPC_HumanDestroyer", { 
    Name = "Human Destroyer",
    Class = "NPC_HumanDestroyer",
    Category = "Category"
    })

    just put it where you want. In the npc's code will also work.

    THanks so much

    And if i put at the start of the lua script this "Category = "HumanDestroyer"
    it creates its own spawnlist
    Thanks again

    Bananite

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Submitter

H72david avatar
H72david Offline
Member Joined 2y
674 points Ranked 6763rd

H72david
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Stats

Posts
2
Views
922
Date Added
1y
bcp.crwdcntrl.net tracking pixel