Ulysses Stuff > General Chat & Help and Support
Spaw NPC with playermodel?
(1/1)
Bleidd64:
I have a playermodel Miku and I want to spawn a npc_citizen with that skin using "ulx ent". Is it possible to do? Note: that's what the Q menu in sandbox does - spawns a Citizen with model of Miku when I press on Miku.
Timmy:
This is what such a command would look like:
ulx ent npc_citizen citizentype:4 | model:models/yourmodel.mdl
How to find the path to a model?
Start a new sandbox game, open the spawn menu, right-click the model and select "Copy to clipboard".
What do the flag and value pairs mean?
<flag>:<value>Meaningcitizentype:4This sets the citizen's appearance to "unique", making it use a custom model. (source, citizentype values)model:models/yourmodel.mdlPath to the custom model.
See Topic: Pro tips for more "ulx ent" examples.
Bleidd64:
Thank you! The part I was missing was citizentype:4. I tried to do it like type:unique and type:4.
Navigation
[0] Message Index
Go to full version