Cliffford W. Posted October 27, 2017 Share Posted October 27, 2017 Hey guys i want to do console command which will apply to everyone like inst.WaveComponent:SetWaveTexture(resolvefilepath("images/lavaarena_wave.tex")) i tried TheWorld. but idk how to do it for everyone Link to comment Share on other sites More sharing options...
Daniel86268 Posted October 27, 2017 Share Posted October 27, 2017 You can try to use a loop to apply that line of code to everyone (I'll just assume that your line of code is correct, so I won't check it by itself.) For example this should do your trick: for i, v in ipairs(AllPlayers) do v.WaveComponent:SetWaveTexture(resolvefilepath("images/lavaarena_wave.tex")) end v should be the variable containing the actual player id. If it isn't and this doesn't work you can try for i, v in ipairs(AllPlayers) do AllPlayers[i].WaveComponent:SetWaveTexture(resolvefilepath("images/lavaarena_wave.tex")) end where i is the index number of each player, and AllPlayers[] is the array of all players that gives you the player at that specific position in the list. "TheWorld" doesn't work because it only affects the world file, not the players. (The world can't wave (I assume that's what you are trying there.)) "inst" is the currectly used instance of an object like a player, animal, tool, etc. you name it. (These ones just for clarification why it didn't work ) Edit: Keep in mind though, that you have to apply this every time someone joins the game. Otherwise the people that joined after you issued that command will have the default wave texture again. This is also the case for people rejoining the game after they left, even if they got modified before. If you want to change that permanently you should take a look at modding the game. Also make sure that when you paste the command into the console that you have the "Remote: " in front of it. Link to comment Share on other sites More sharing options...
CarlZalph Posted October 28, 2017 Share Posted October 28, 2017 This is handled on the client's end, and you can't enforce a change like this on the server without a mod that is done on clients. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.