Ok.
Got another one: is there any variable for number of active players, or it can only be counted using Players reference array in GameInfo?
1. What is the actual difference in calling LocalSound() from different clasees: Window, GameInfo, Player, Actor etc. When those sounds will be played for all clients and when only for one?
2. How may I intercept player commands for movement and changing direction of view? Well, at least for movement. I wish to try making special Activate/Deactivate for PlayerPawn as well. Currently it works unstable and causes game crashes often.
3. How may I call window from server classes (Player for example)? Do I need to precreate that window somehow?
(Well, actually I made similar thing already with Scoreboard in KA by precreating it in ClientGame and using flag in ClientInfo to know whether it must be shown at current moment, but want to be sure if it is the best way)
Janis Legzdinsh wrote:LocalSound() is a client side method, you are not allowed to call it from server side classes, such as Actor, Player of GameInfo.
Janis Legzdinsh wrote:3. How may I call window from server classes (Player for example)? Do I need to precreate that window somehow?
(Well, actually I made similar thing already with Scoreboard in KA by precreating it in ClientGame and using flag in ClientInfo to know whether it must be shown at current moment, but want to be sure if it is the best way)
Currently the only way now is by using a custom network protocol command. Most likely you'll have to precreate the window.
Users browsing this forum: No registered users and 1 guest