(ALSO, sorry Gran-PC for not reading the sticky. I was in a rush and totally understand that you banned me.)
So, i am working on a NPC pack and it actually works, but i got the problem that when i spawn it, all i see is a shadow of a VERY slim, nearly skeleton like human that just stands there and does nothing.
Here is my code:
local Category = "Kuma War Vietnam NPCS"
local NPC = { Name = "U.S. Marine",
Class = "npc_citizen",
Model = "models/vietnam_us_marine",
Health = "100",
KeyValues = { citizentype = 4 },
Category = Category}
list.Set( "NPC","npc_vietnam_marine", NPC )
BTW, i heard that Citizentype 4 the only working type is. Is that right?
Thanks in advance. :D
EDIT: How do i create a picture/preview in the spawnlist?
First of all, you're forgetting to put the .mdl extension on your Model, so that's why maybe it's not working.
Second, when you're working with Lua remember to put lua tags.
To create a "picture" you need to create a .vtf file, there's tutorials flying around if you want to make one.
Also, you're forgetting to put a space near
[lua]list.Set( "NPC","npc_vietnam_marine", NPC )[/lua]
change to:
[lua]list.Set( "NPC", "npc_vietnam_marine", NPC )[/lua]
[QUOTE=Greatie;35126573]First of all, you're forgetting to put the .mdl extension on your Model, so that's why maybe it's not working.
Second, when you're working with Lua remember to put lua tags.
To create a "picture" you need to create a .vtf file, there's tutorials flying around if you want to make one.
Also, you're forgetting to put a space near
[lua]list.Set( "NPC","npc_vietnam_marine", NPC )[/lua]
change to:
[lua]list.Set( "NPC", "npc_vietnam_marine", NPC )[/lua][/QUOTE]
Oh, thank you very much :D
You deserve a cookie.
Sorry, you need to Log In to post a reply to this thread.