How to change npc models using sourcemod?
Hello, I was wondering if there is a way to change npc models using sourcemod, if so could you give me the lines of code or a guide on how to do it?
Sorry I am a noob at coding on sourcemod and this is my first thread. |
Re: How to change npc models using sourcemod?
native SetEntityModel(entity, const String:model[]);
|
Re: How to change npc models using sourcemod?
Quote:
public OnPluginStart() { native SetEntityModel(npc_combine_s, const String:model[models/npc/combine_soldier.mdl]); } |
Re: How to change npc models using sourcemod?
I suggest that you systematically go to the wiki website to learn the language.(https://wiki.alliedmods.net/Category...eMod_Scripting)
|
Re: How to change npc models using sourcemod?
What npcs from what game?
|
Re: How to change npc models using sourcemod?
PHP Code:
|
Re: How to change npc models using sourcemod?
Quote:
|
Re: How to change npc models using sourcemod?
PHP Code:
You should choose one way to remove the "//". not remove "//" mean's change all the entity's model. If you choose 1 mean only change one entity, index is the entity's index.If you choose 2 mean change a type of entity, "classname" is this entity's name. And you should change the index or "classname" by actual situation. Because I don't know which entity you want to change. I don't even know which game you want to use. |
Re: How to change npc models using sourcemod?
1 Attachment(s)
For example:
make sure npc_combine_s is a valid entity classname which you want to set model. PHP Code:
|
All times are GMT -4. The time now is 22:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.