From Bohemia Interactive Community
|
|
(4 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| '''
| |
| == Locality in Multiplayer ==
| |
| '''
| |
|
| |
| Entities in OFP are handled, in multiplayer, by one computer alone, which sends updates about this entity to other computers connected to the MP game.
| |
| A unit is said "local" when it is handled by the local computer.
| |
|
| |
| To know if a unit is local, use the local script command.
| |
|
| |
| The basic rules to determine locality are as follows
| |
| - Player's character is of course local to player's PC
| |
| - AI units in a group whose leader is player are local to player's PC.
| |
| - AI units in a vehicle under player's command are local to player's PC.
| |
| - All other AI units are local to server (may be player's PC, of course).
| |
|
| |
| Knowing locality of a unit is very important as certain command only affect local units (see moveInDriver for example).
| |
| Other commands have only local effect, nothing will be done outside of computer where the command was issued (see setFog for example).
| |
|
| |
|
| |
|
|
| |
|
| [[Category:Sandbox]] | | [[Category:Sandbox]] |
Latest revision as of 04:44, 3 December 2018