NPC Sync

Posted by MartinDam
Hello, which method is best for sync position,angle and movement of NPC which actually player see in the view?
I want to NPCs follow player which is closest and other players can see it without any problem.. I trying it but it's possible? I'm not doing well.
And how many NPCs can be sync at one time? Thanks for the reply.

Replies (1)

Last message on 14 Dec 2018

Ryaangu on 14 Dec 2018, 23:19:08
Hey Martin Dam,

- How to sync a NPC?
You can easily sync your NPC using this code:

gms_instance_sync(id, is_full | isc_local);

In your NPC create event.

- How many NPCS can be synced at one time?
Just go to your game, upgrades and check for Maximum number of instances.


Bye,
Ryaangu.