| |
| « Sénateur » 1540038780000
| 2 | ||
Hypermousem a dit : It's impossible to have a "nil" index in a table, that's not how lua works. You must iterate over the table to make it to everyone. Use table.foreach(tfm.get.room.playerList, tfm.exec.giveMeep) |
| 0 | ||
| anyone have example for a leaderboard ? |
| 0 | ||
| Freeze a player, is it possible? Or make them can't move |
| « Consul » 1540727520000
| 0 | ||
Owl a dit : No, you can't. You can only make that it teleports player to the same position every 0.5 sec (but player can move) Dernière modification le 1540727580000 |
| « Citoyen » 1540762140000
| 0 | ||
| Script where at the beginning of the game can name your character then instead of your username it's your character's name. Is it possible to shoot like maybe a cannon? Then when someone even touches it they die? |
| « Consul » 1541169540000
| 0 | ||
| how to table.foreach the APIs that require more variables (tfm.exec.setShaman(<all players>,false) ? Dernière modification le 1541170800000 |
| « Sénateur » 1541174040000
| 0 | ||
Syrius a dit : you can not, unless you create a function Code Lua 1 2 3 table.foreach(tfm.get.room.playerList, function(playerName) But if you're going to use it, then use the generic for that is faster Code Lua 1 2 3 for playerName in next, tfm.get.room.playerList do Dernière modification le 1541174100000 |
| « Citoyen » 1541224260000
| 0 | ||
| example i clicked a then b how could i print "ab"? like addition but with words srry for bad english Dernière modification le 1541224320000 |
| 0 | ||
| I need Afk command !Afk . if you use it you won't be shaman . if you use it again you will back to the game. |
| 0 | ||
| Hello, somebody knows the water and spider web values? please i need it for Physics Objects! |
| « Consul » 1541325360000
| 0 | ||
Lua a dit : ![]() From there: https://atelier801.com/topic?f=5&t=451587&p=1#m2 or just make a code: Code Lua 1 2 3 for name, id in next, tfm.enum.ground do Dernière modification le 1541325480000 |
| 0 | ||
Sebafrancuz a dit : I know the ID. but i mean, the bodyDef values... " fixedRotation (Boolean), mass (Int), linearDamping (Float), angularDamping (Float) " to achieve the effect of spider web or water |
| « Sénateur » 1541367120000
| 0 | ||
Lua a dit : Use miceCollision = false |
| « Citoyen » 1541439180000
| 0 | ||
Icraatsifir a dit : |
| 0 | ||
| it is possible to remove the start countdown of each map? (3..2...1) |
| « Citoyen » 1541473200000
| 0 | ||
Icraatsifir a dit : Pls |
| 0 | ||
| Campwolf : Script where at the beginning of the game can name your character then instead of your username it's your character's name If you wanted to change the player's name, then you can't. Or else, when you told "at the beginning of the game", do you mean when a player joins? If yes then Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 players={} --create a table that stores players dataCampwolf : Is it possible to shoot like maybe a cannon? Then when someone even touches it they die? I'm not sure if it's the best way to do it, but i think it is. You can't make a player die by touching a cannon with lua, you must use maps having the aie="" parameter. You can add a cooldown using this thread by Bolodefchoco : Cooldown logic Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 function eventNewPlayer(playerName) --when a player joins Dernière modification le 1543067760000 |
| « Citoyen » 1543042320000
| 0 | ||
| one question (i haven't lua code since i dont know when so i am refreshing some stuff) can you change the font of the textArea? if yes then what is the fonts i can use |
| « Sénateur » 1543065060000
| 0 | ||
Overjoy06 a dit : Yes. Example: "<font face='Verdana, Arial, Courier'>Hi</font>" In this case, if the user has the font Verdana, then it's gonna be Verdana, otherwise Arial, or Courier, or the standard font of Transformice. You can use ANY font, but the user must have it on his computer in order to see it correctly. I recommend you to use only Windows fonts (official ones), since most of the people use it |
| « Citoyen » 1543065300000
| 0 | ||
Overjoy06 a dit : Yes you can. ^Ninja X_x Code Lua 1 2 3 text = '<font face="Webdings">What are those characters ?</p>' -- Webdings is a weird font made of icon Result ![]() You can use any font installed on your computer. The fonts installed by default depend of your operating system and its version. Dernière modification le 1543065360000 |