Dran Ryszard
Member
Hi, i think about little character update, then if player got X storage, he have 2 attacks per second for few min or something like that.
(Im not tried anything for now, only thinking xD)
So in my head, i thinked something like that.
- Add that function - Lua Function - [TFS 1.2/1.3] player:setAttackSpeed(ms) | player:getAttackSpeed() (https://otland.net/threads/tfs-1-2-1-3-player-setattackspeed-ms-player-getattackspeed.257468/)
And then check in login event if player have X storage then set X attackspeed, but if someone use that upgrade without logout/login then he not get 2aps
So there is my question, how to check if player have X storage to add him more attack per sec?
Its possible to check storage in every singel attack? Or it get to much memory of server and possible to make lags?
(Im not tried anything for now, only thinking xD)
So in my head, i thinked something like that.
- Add that function - Lua Function - [TFS 1.2/1.3] player:setAttackSpeed(ms) | player:getAttackSpeed() (https://otland.net/threads/tfs-1-2-1-3-player-setattackspeed-ms-player-getattackspeed.257468/)
And then check in login event if player have X storage then set X attackspeed, but if someone use that upgrade without logout/login then he not get 2aps
So there is my question, how to check if player have X storage to add him more attack per sec?
Its possible to check storage in every singel attack? Or it get to much memory of server and possible to make lags?