IsServer() ?

My mod is almost ready to be play-tested, but I want to make sure that it's running well. So can someone give me a short guide what function/stuff/game-logic should be run only at server side ? (IsServer()). Thanks

Comments

  • edited November 2015 Posts: 1,670

    IsServer() is required on lua modifiers and a couple of ability_lua functions. The list of client-side available functions can be found in http://yrrep.me/dota/csdump/ or via cl_script_help2

    Basically if your modifier/lua ability uses something that isn't available to clients, you need to tell it only should execute on the server machine

    Note that the host is client and server at the same time in non-dedicated servers.

    The concept of Modding Community doesn't go well together with Competitive Business
    My Project Page || My GitHub Profile ||

  • Oh only that ? How about game logic ? Like periodical spawner. Do you need to give IsServer to them ?

  • edited November 2015 Posts: 1,670

    No need, lua game logic is already server-side only.

    The concept of Modding Community doesn't go well together with Competitive Business
    My Project Page || My GitHub Profile ||

  • oo neat, I guess I can play test my mod now XD. Neat, thanks noya