How to send/spawn custom FSM to client?

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

    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!


  2. #2
    Member SHAR1NGAN is offline
    MemberRank
    May 2017 Join Date
    93Posts

    Re: How to send/spawn custom FSM to client?

    Quote Originally Posted by BorizzK View Post
    Code:
    brainPlayerFSM = compile preprocessFileLineNumbers "scripts\fsm\brain_player_client.fsm";
    [_id,brainPlayerFSM] spawnForClient {
     _brainPlayerFSM = _this select 1;
     player execFSM _brainPlayerFSM;
    };
    Using this code, the player will read this like this:
    Code:
    player execFSM compile preprocessFileLineNumbers "scripts\fsm\brain_player_client.fsm";
    And the usage of this function is:

    Code:
    (argumment) ExecFSM (file);

    I don't know if has some way for do this... But you can continue to trying...

  3. #3
    Registered BorizzK is offline
    MemberRank
    Mar 2018 Join Date
    11Posts

    Re: How to send/spawn custom FSM to client?

    Originally in init_newBody

    [_id] spawnForClient compile "player execFSM '\dz\modulesDayZ\fsm\brain_player_client.fsm'";

    This call brain_player_client.fsm on client from client files (pbo)

    ...


    I need to send custom brain_player_client.fsm from server and exec this on client



Advertisement