Garry's Mod

Garry's Mod

NPC Daemon
penguino 2024 年 5 月 17 日 下午 8:12
Suggestion: Npc's that throw projectiles
Similar to how Antlion Workers work in Hl2 EP2. They spit poison at you when your within range. I was wondering if i could make npc's behave like that.
< >
正在显示第 1 - 5 条,共 5 条留言
sockpuppetclock  [开发者] 2024 年 5 月 18 日 上午 11:37 
some npcs have inputs that force attacks, like combine soldiers have an input ThrowGrenadeAtTarget that forces them to throw a grenade at a target (and if you set the target to !player or !pvsplayer, it'd throw them at players)

inputs are already in [Miscellaenous] Inputs, but if i add a way to repeat those inputs constantly that could act like "behavior"
sockpuppetclock  [开发者] 2024 年 5 月 18 日 下午 5:11 
inputs can now repeat. it's now possible to force a combine soldier to constantly throw projectiles
penguino 2024 年 7 月 1 日 下午 6:51 
Whenever i put the command in it does nothing.
penguino 2024 年 7 月 1 日 下午 7:16 
引用自 sockpuppetclock
some npcs have inputs that force attacks, like combine soldiers have an input ThrowGrenadeAtTarget that forces them to throw a grenade at a target (and if you set the target to !player or !pvsplayer, it'd throw them at players)

inputs are already in [Miscellaenous] Inputs, but if i add a way to repeat those inputs constantly that could act like "behavior"



There also isnt an input like that, theres stuff like Wake (Wake) and HolsterWeapon (HolsterWeapon) but not anything about grenades.
sockpuppetclock  [开发者] 2024 年 7 月 4 日 下午 3:56 
you'll have to change the value type to "string" instead of enum and type that in manually. https://developer.valvesoftware.com/wiki/Npc_combine_s#Inputs
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50