edited 1×, last 31.08.11 04:00:13 pm
Forum
CS2D Scripts combining scriptscombining scripts
9 replies 1
EDIT: lol. few seconds too late
EngiN33R has written
thank you for the quick reply. Thanks it works. Will using 2 or more lua scripts cause any certain lag issues? Just add two or more dofile lines in your server.lua file. You can execute up to lots of Lua scripts at the same time.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the addhook command (if hooked functions use the return value).
EDIT: You can have unlimit addhooks (Of the same) if they all have a different variable.
edited 1×, last 31.08.11 04:10:29 pm
DC has written
thank you for that. On my spare time I might read on the lua tutorials here so I can understand them better. yeah depends on the scripts.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the addhook command (if hooked functions use the return value).
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the addhook command (if hooked functions use the return value).
1