Scripting API: client-side NPC actors (like ClientActor in JC2-MP)
Hi, first of all thanks for bringing JC3:MP back. 1.0.8 runs great for us.
Request: Please expose a scripting class for client-side NPC characters, similar to ClientActor in JC2-MP.
Why: Right now server owners can spawn vehicles, objects, checkpoints and POIs, but there is no way to put people into the world. Co-op missions, escorts, enemy outposts, zombie/survival modes and simply a less empty Medici all depend on this. JC2-MP proved that scripts can handle the sync part themselves once an actor API exists. Community scripts like JC2MP-NPC-AI-System (2025) do exactly that: the server keeps an authoritative NPC list (id, model, weapon, health, target) and broadcasts it, each client spawns and drives its own actor, and hits/deaths are reported back to the server. No engine-level NPC sync is needed.
What the API would need (client side), modelled on JC2-MP:
new Actor(model, position, rotation)/Destroy()position,rotation,health(get/set)movement input (move/turn, e.g.
SetInput(action, value)), base/upper-body animation state (idle, walk, run, swim, fall, aim, reload, hit-react, dead)GiveWeapon(hash, ammo),aimPosition, fire inputpathfinding to a target position (async callback with waypoints), like JC2-MP’s
FindShortestPathoptional: enter/exit a vehicle seat and basic driving input, so scripts can build simple traffic
events: actor hit by bullet (attacker, damage), actor hit by vehicle, actor death
The client already builds and animates character puppets for remote players, so a lot of the groundwork seems to be in place.
Even a minimal first version (spawn, move, animate, health, hit/death events) would unlock co-op content for every server. Thanks!
Log in to comment and vote
No comments yet
Be the first to share your thoughts.