How to create a NPC to Pawn?
Printable View
How to create a NPC to Pawn?
Code c:
native CreateActor(actor, ID, cell = 0, Float:X = 0.00, Float:Y = 0.00, Float:Z = 0.00);
You can either spawn at an ID or give the coordinates yourself. So this are the two ways of calling:
Code c:
CreateActor(actor, ID); CreateActor(actor, 0, cell, Float:X, Float:Y, Float:Z);
Ok, Thanks you.
Please write some sample code to spawn NPC on Pawn.
I think it is really straightforward.Code c:
public OnPlayerChat(ID, message{}) { CreateActor(0x30D82, ID); // spawning Carter at ID (the player who typed something) return 1; }
Thanks you.
Hey Recy I was wondering if you've implemented ragdoll or physics synchronization yet to the mod, I figured because since AI is synced now could players all see the same body and loot the body?