How to send/spawn custom FSM to client?

Results 1 to 1 of 1
  1. #1
    Newbie BorizzK is offline
    MemberRank
    Mar 2018 Join Date
    3Posts

    How to send/spawn custom FSM to client?

    I need to change original brain_player_client.fsm in init_newBody.sqf to custom from server.
    Original brain_player_client.fsm execute on client from client side addons.

    Code:
    [_id] spawnForClient compile "player execFSM '\dz\modulesDayZ\fsm\brain_player_client.fsm'";
    I need to send custom fsm from server to client
    like this

    Code:
    brainPlayerFSM = compile preprocessFileLineNumbers "scripts\fsm\brain_player_client.fsm";
    [_id,brainPlayerFSM] spawnForClient {
     _brainPlayerFSM = _this select 1;
     player execFSM _brainPlayerFSM;
    };
    but it does not work

    How do it?

    THANX!




Advertisement