Jump to content

player_258

Members
  • Posts

    4
  • Joined

  • Last visited

player_258's Achievements

Vic

Vic (3/54)

0

Reputation

  1. sip "race" type="map" version="1.0.0"> "marioKart2.map" dimension="0"> "#skins" value='[ "cj" ]'> "#maxplayers" value="[ 128 ]"> "#gamespeed" value="[ 1 ]"> "#ghostmode" value='[ "false" ]'> "#time" value="12:0"> "#vehicleweapons" value='[ "false" ]'> "#minplayers" value="[ 0 ]"> "#weather" value="[ 0 ]"> "#gravity" value="[ 0.008000 ]"> "#waveheight" value="[ 0 ]"> "#respawntime" value="[ 5 ]"> "#locked_time" value="[ false ]"> "#duration" value="[ 1800 ]"> "#respawn" value='[ "timelimit" ]'> client="1.3.0-9.04555"> edit: acabo de postiar todo el codigo -------------------------------------------------------- Me las arregle para hacer un efecto lanzallamas con fuego, con lo siguiente local x,y,z = getElementPosition(weapon) createExplosion (x, y, z, 1) ahora, porque el createFire no funcionaba? no tengo idea. cierren el tema si quieren
  2. Buenas, vengo acá porque tengo un problema con el createFire que me parece muy extraño.. client.lua : lInea 233 activa el evento de fire.lua http://pastebin.com/2qpG8GqX server.lua http://pastebin.com/XM6kr8xv fire.lua : el outputChatBox funciona, porque el createFire no? http://pastebin.com/YvVvgcxx Datos ¿importantes? -El archivo se carga junto a un .map de race -Intento hacer un sistema de powerups, al estilo mariokart, obviamente queda mucho trabajo por hacer. -Todo funciona, excepto la creación de fuego. -Edit: debugscript 3 no reporta ningun error. El fuego no se crea si lo coloco en el fire.lua, incluso no funciona el ejemplo de la wiki!, pero si pongo el mismo ejemplo de la wiki en un archivo aparte, con su meta.xml y todo, si funciona! Alguien puede explicarme que pasa ? Edit2: Las coordenadas estan bien.
  3. Thanks to both of you for the quick response
  4. Im trying to make a script that randomly "pushes" a car in a random direction. The problem is, i don't know how to get the vehicle that the player is driving. btw, this is supposed to work in a server running "race" Gamemode. server.lua addEvent("forceButtonInfo",true) function forceButtonServer(playerName) --Connected with a gui button in client.lua local targetPlayer = getPlayerFromName ( playerName ) if ( targetPlayer ) then outputChatBox("Player Found!") --This actually appears in the chatbox so the function is working setElementVelocity ( targetPlayer,math.random(-100,100), math.random(-100,100),math.random(-100,100) ) --This doesnt work else outputChatBox("Player not Found") end end addEventHandler ( "forceButtonInfo", getRootElement(), forceButtonServer ) Sorry if theres any typo, im not a native english speaker.
×
×
  • Create New...