![]() |
![]() ![]() « Consul » 1385870160000
| 0 | ||
Splashclaweh a dit : You can't play videos with modules at all. |
0 | ||
Look the instant cannons with a mouse click can be done. Why no portals? like with right click, blue portal, and left one, orange portal can that be done? a dit : |
![]() ![]() « Censeur » 1385897340000
| 0 | ||
Arber a dit : There is no event/function for the right mouse button. |
![]() ![]() « Citoyen » 1385901000000
| 0 | ||
Is there a way to get the length of a table? |
![]() ![]() « Censeur » 1385901300000
| 0 | ||
Tailtong a dit : table.getn(table) or #table |
![]() ![]() « Consul » 1385907540000
| 0 | ||
This doesn't count the amount of items in an associative table though, so I'd recommend looping through it to increment a number in this case. a dit : |
![]() ![]() « Censeur » 1385907840000
| 0 | ||
Shamousey a dit : Oh, I now know what's an associative table; it's not used a lot anyway. |
![]() ![]() « Consul » 1385908560000
| 0 | ||
Safwanrockz a dit : They're used quite a lot in most people's scripts. tfm.get.room.playerList and tfm.get.room.objectList are associative tables as well, so you could use that function if you ever want to count how many players are in the room for example. |
![]() 1385986920000
| | ||
[Modéré par Bolinboy, raison : http://www.transformice.com/forum/?s=458983&p=0] |
![]() ![]() « Citoyen » 1386062580000
| 0 | ||
Bethdacat a dit : It would be better if you describe exactly what you want ^^' Anyways, the corrected previous code is in the link below: http://pastebin.com/mAVFPC70 |
![]() ![]() « Citoyen » 1386079560000
| 0 | ||
How to make an object spawn every 10 sc ? Easy way please |
![]() ![]() « Citoyen » 1386089460000
| 0 | ||
Abdeltif a dit : very easy a dit : |
![]() ![]() « Consul » 1386089700000
| 0 | ||
That'd spawn it every half a second, Rigbylua. You can use simple math to make it every 10 seconds, though. a dit : |
![]() ![]() « Citoyen » 1386092160000
| 0 | ||
Shamousey a dit : Hmm , okay I'll see , also ! Isn't the Loop every 400 ms ? not 0.5 :/ |
![]() ![]() « Consul » 1386092400000
| 0 | ||
It's every 0.5s, not 0.4s. Documentation a dit : |
![]() ![]() « Citoyen » 1386092400000
| 0 | ||
Shamousey a dit : okay , wow for that html <3 |
![]() 1386193380000
| | ||
[Modéré par Katburger, raison : Spam] |
0 | ||
A script where you get respawned exactly where you died? |
![]() ![]() « Consul » 1386267120000
| 0 | ||
Magicalorb a dit : --Going with the idea that playerList doesn't update instantly, you co-ordinates are kept in the playerList for a very short amount of time after you die. function eventPlayerDied(name) tfm.exec.respawnPlayer(name) tfm.exec.movePlayer(name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y) end |
![]() 1386282360000
| | ||
[Modéré par Katburger, raison : Wrong thread] |