Jump to content

falseprophet

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by falseprophet

  1. He's asking a question on how to change the text with the gridlist widget or whichever widgit he is using, I guess.
  2. The probably with this is each model will need to obey the power of 2 with their size. Which probably means every model used with this system will need to be created by the map author.
  3. Does addCommandHandler() always pass the calling player over to the command used? Also, where can I read on the global variables that MTA uses? Specifically source, and the others. [edit] if source is global then why does it fail to carry over the way I had it before? And how does addEventHandler() know which player to spawn the way its set up now?
  4. Ah okay, I didn't know that source was lost. Thank you for the help!
  5. Hello again. I am trying to come to grips with MTA's script handling/event handling system. Well, I made a simple script to play around with and whenever a portion of it runs, I get the following errors(Note: It works fine when joining.): The script: -- Learning MTA's script system function playerSpawnAt(x, y, z) outputChatBox("Calling: playerSpawnAt("..x..", "..y..", "..z..")", source) spawnPlayer(source, x, y, z) setCameraTarget(source, source) fadeCamera(source, true) end function doOnJoin() outputChatBox("Calling: doOnJoin()", source) playerSpawnAt(2031, -1405, 17.4) end function doOnDeath() outputChatBox("Calling: doOnDeath()", source) setTimer(playerSpawnAt, 2000, 1, 2031, -1405, 17.4) end addEventHandler("onPlayerJoin", getRootElement(), doOnJoin) addEventHandler("onPlayerWasted", getRootElement(), doOnDeath) Any ideas? Would be awesome if someone can explain to me the why's & how's.
  6. Which functions do I need to look into for the creation of new weaponry?
  7. Anyone know why this happens? If I alt-tab/ctrl+escape/windows key out of the game and come back and then shoot my weapon, the weapon continues to fire and does not stop. If I use a melee weapon it will fire once and ever again.
  8. I haven't played MTA since around 2006 or so. When there was only race mode. The scripting engine back then lacked... several things. I am curious as to how complete the Lua engine itself is. I have looked at the MTA function documentation on the wiki and it's very impressive right now. But I am curious of the Lua engine. For example, can we load libraries? Such as a DLL written in C?
×
×
  • Create New...