15.07.2012, 18:23
Couldnt test your code yet, my current rnpc include is extremely messed up as im changing some major things in the structure, and am too lazy to use another version for testing
But Ill test it as soon as everything is working again.
I noticed a major syncing problem with the npcs that causes more work than I expected: As NPCs run in their own thread, the script does not wait e.g. for them to join the server when connecting. So codes like
Do not work in general, as after connecting the NPC isnt really there. Means I need to rearrange the whole system to join the npc threads. Mainly the RNPC_StartBuildPlayback function will set a mark to execute the playback when the npc actually connects in OnPlayerConnect. This will also bring changes to the vehicle system, as it is the same for functions like PutPlayerInVehicle. The NPC isnt in the vehicle instantly, but with a slight delay (<1 ms), this is also the reason for most of the current problems with the vehicles.
Im still not 100% sure about how ill realize all this in detail, but am doing my best to make a way more stable version available soon, the current 0.3 is a real mess to be honest
But Ill test it as soon as everything is working again.
I noticed a major syncing problem with the npcs that causes more work than I expected: As NPCs run in their own thread, the script does not wait e.g. for them to join the server when connecting. So codes like
pawn Код:
new id = ConnectRNPC("lol");
MoveRNPC(id, whatever);
Im still not 100% sure about how ill realize all this in detail, but am doing my best to make a way more stable version available soon, the current 0.3 is a real mess to be honest