Jump to content
  • Global

    Global

    Chatroom Rules

    • NO SE DA SOPORTE EN CHATBOX
    • NO SPAM
    • NO FLOOD

Recommended Posts

  • Usuario
Posted

Necesito información para cambiar los pickups para que en vez de que aparezca un arma flotando aparezca como un objeto, como los de ammu-nation. Gracias por la ayuda.

PD:Perdon por tantos posts es que estoy aprendiendo lua y todavia no me manejo con muchas funciones.Conste que no posteo apenas tengo la duda, eso estaría mal. Pero lo hago como último recurso ya que no me da la cabeza. xD

  • Usuario
Posted

Bueno, gracias. Entonces,por ejemplo, para crear un pickup de una ak cuando un jugador muere quedaria asi?:

 

function crearPickup ( totalammo, killer, killerweapon, bodypart )

dx,dy,dz = getElementPosition(source)

createPickup ( dx, dy, dz, 3, 355, [ammo = 500 ])

end

addEventHandler ( "onPlayerWasted", getRootElement(), crearPickup )

 

SI HAY ALGUN ERROR PODES CORREGIRME?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...