Creating a spawnlist in the NPCS section

Attention Gamer! 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

Sound fun?

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
    MarioDox avatar Searchin' love
    ?
    Mario's Company Flag Affiliation: Mario's Company
    Member Joined 3y
    2,737 points Ranked 1681st
    23 medals 3 rare
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 50 Skins Medal icon
    • Reached 1,000 Points Medal icon
    • One month a member Medal icon
    • 6 months 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 1y
    678 points Ranked 6603rd
    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 1y
678 points Ranked 6603rd

H72david
Send a Private Message to the submitter

Category

Stats

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