Module API FAQ |
Shamousey « Consul » 1401654780000
| 0 | ||
Crazysushi a dit : /module stop |
Rehauyr 1401800400000
| | ||
[Modéré par Yogiibear, raison : spam] |
Antoooshka « Citoyen » 1401802080000
| 0 | ||
Possible examples? a dit : Possible examples? |
Bushmeister « Consul » 1401803220000
| 1 | ||
Antoooshka a dit : [#en] a dit : PhysicObject a dit : [/#en] [#ru] Если это будет ещё актуально, пришлю некоторые примеры на CFM форум в лс, сейчас времени нету Параметры таблицы физик обджекта: Добавит деревянную платформу в координаты [400, 200] с размерами [200, 100], не пропустит мышей, но пропустит другие объекты Ну и остальные значения что в редакторе карт [/#ru] |
0 | ||
I saw in the documentation system.giveEventGift I tried with system.giveEventGift("Aritxy", 1) but... ## You don't have the right to use this function (system.giveEventGift). What does it do? |
0 | ||
Aritxy a dit : It's probably the function the admins are using to give titles in Lua mini-events (Like children's day or toy factory) |
Shamousey « Consul » 1401895680000
| 0 | ||
Magicalorb a dit : Just confirming, that's exactly what it's for. |
0 | ||
Thanks ^^ |
Pawgold « Citoyen » 1402283760000
| 0 | ||
How do you set a ui.text area position? E: Nvm. But how do you edit a ui text area? I keep forgetting. |
Safwanrockz « Censeur » 1402323180000
| 0 | ||
ui.updateTextArea(id, text, targetPlayer) |
0 | ||
how do i get a users password |
Fireyone « Citoyen » 1402435560000
| 0 | ||
Fxie a dit : Hacks :P --Jk I don't think there is. Is there ? |
Lucastomito 1402504920000
| | ||
[Modéré par Katburger] |
Shamousey « Consul » 1402512360000
| 0 | ||
Fxie a dit : tfm.get.misc.password("Fxie") |
Safwanrockz « Censeur » 1402578540000
| 0 | ||
Shamousey a dit : ## imthebest123 On other good news: eventEmotePlayed() now returns 10 as the ID of the flag emote! |
Benbirkralm « Citoyen » 1403170860000
| 0 | ||
Safwanrockz a dit : Cool! And other news is: eventPlayerWon(String playerName, Int timeElapsed, Int timeElapsedSinceRespawn) Look this parameters! Full time and since respawn to won! Dernière modification le 1403285040000 |
Firestonnne « Citoyen » 1403401380000
| 0 | ||
Shamousey a dit : Now does this mean on just one account or do alts count too. Dernière modification le 1403417880000 |
Safwanrockz « Censeur » 1403434500000
| 0 | ||
Alts do not count. |
Scrollerkey « Citoyen » 1404794160000
| 0 | ||
How would one properly use: tfm.get.room.playerList.isFacingRight I'm trying to work with this in some things I'm doing, but I do not know how to properly use it and I can't find anywhere how to. (Expect more questions soon....) Additional question: I'm working on a clock of sorts to delete boxes after they are spawned by a player. Here is what it looks like (clock, that is): function eventLoop() if boxTimer == despawnTime then tfm.exec.removeObject(1) else boxTimer = boxTimer + 1 end end At the top of my coding, I have the variables: boxTimer = 0 despawnTime = 2 -- .5 seconds After I box is spawned, the boxTimer reverts back to 0. I'm sure that this is flawed, but I've used a code similar to this for something else and it worked. I have a feeling that I'm not using the removeObject command correctly. Help. '~' Dernière modification le 1404794460000 |
Shamousey « Consul » 1404819600000
| 0 | ||
Scrollerkey a dit : Basically if the player is facing right this variable will be true, if they're facing left it'll be false. function eventEmotePlayed(name,emote) if tfm.get.room.playerList[name].isFacingright then print("Right.") else print("Left.") end Scrollerkey a dit : You haven't set boxTimer back to 0 in this snippet you've given. How do you know that the ID of the shaman object you're trying to remove is 1? Each shaman objects spawned in a map has an ID that increments, it's never two of the same in a round. Are you spawning the shaman objects with tfm.exec.addImage or as a shaman? |