I'm wondering what the code is to make a NPC medic within the character's npc lua file. For example, how you have the citizens and a separate npc medic. I'm trying to achieve that goal.(One regular npc and a medic version of the character)
I know npc_citizen_medic doesn't work because when I spawn my character, they don't spawn at all.
Thanks in advance.
[QUOTE=RavenToast;34999181]I'm wondering what the code is to make a NPC medic within the character's npc lua file. For example, how you have the citizens and a separate npc medic. I'm trying to achieve that goal.(One regular npc and a medic version of the character)
I know npc_citizen_medic doesn't work because when I spawn my character, they don't spawn at all.
Thanks in advance.[/QUOTE]
I don't think the Medic exists. Im sure that Medic is only the citizen that knows how to throw medic kits. I've attempted at printing the npcs i've killed in console and it showed npc_citizen. If you can find the GCF File for NPC's that are apart of HL2 I think this might help. All I can say though :P Someone correct me if i'm wrong about this.
There's a keyvalue on npc_citizen that sets whether its a medic or not. Look up npc_citizen on the valve developer wiki. All of the keyvalues should be on there.
[QUOTE=shadowndacorner;35004695]There's a keyvalue on npc_citizen that sets whether its a medic or not. Look up npc_citizen on the valve developer wiki. All of the keyvalues should be on there.[/QUOTE]
[URL="https://developer.valvesoftware.com/wiki/Npc_citizen"]https://developer.valvesoftware.com/wiki/Npc_citizen[/URL]
This would be SetMedicOn?
[QUOTE=brandonj4;35008049][URL="https://developer.valvesoftware.com/wiki/Npc_citizen"]https://developer.valvesoftware.com/wiki/Npc_citizen[/URL]
This would be SetMedicOn?[/QUOTE]
More proper would be to spawn it with the flag Medic
[editline]5th March 2012[/editline]
e.g:
[lua]
-- before spawning
citizenEntity:SetKeyValue("spawnflags", 131072)
[/lua]
Sorry, you need to Log In to post a reply to this thread.