Garry's Mod

Garry's Mod

评价数不足
NPC CustomName Base
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 游戏模式
插件标签: 快乐, 角色扮演
文件大小
发表于
37.094 KB
2023 年 11 月 16 日 下午 1:36
1 项改动说明 ( 查看 )

订阅以下载
NPC CustomName Base

描述
Have you ever wondered how SNPC And other kind of Scripted/VJ NPC's have Custom Kill Icon Names but yours have not? Well look no further!! This mod is very simple to do so!


Q: How do i set my own NPC a custom name?
A: Very simply just add: self.npc.ClassLangOverride = "Put name here" <-- You can copy and paste it
Q: Does this work with SNPC? or VJ NPC's?
A: No they have their own ClassLang codes.

What it does is when ever NPC that has the custom ClassLang with name when it kills a NPC,Player or dies it will display it's custom name. If you add the code into the Custom Scripted NPC Your making without this addon installed the custom name will not display.

All the coding credits are from Uklejamini

Keep in mind if original base gamemode updates this mod will be updated too
New Image will come soon.
3 条留言
CP Unit  [作者] 2024 年 2 月 25 日 上午 6:20 
@Fish You put them into the init.lua It only works for NPC's
horizon 2024 年 1 月 6 日 上午 3:29 
sooo wheres the self.npc.classlangoverride sorry if i am stupid
gm_Redlerman16 2023 年 12 月 22 日 上午 6:58 
[NPC CustomName Base] gamemodes/base/gamemode/player.lua:192: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. unknown - gamemodes/base/gamemode/player.lua:192
3. BlastDamageInfo - [C]:-1
4. unknown - lua/weapons/wiz_lightning_caller.lua:343

found this error, fix?