Jump to content

Ayuda - Attach


Matty

Recommended Posts

Posted

Buenas, Necesito de su ayuda; que funciones y eventos tengo que usar para atachar los objetos al vehiculo como se muestra en esta imagen:

helitable.png

A mi criterio creería que estas:

getElementModel 
getElementPosition 
attachElements 
createObject 
"onResourceStart" 

Ustedes que dicen :roll: ??

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

Posted

Si, con esas deberia ser suficiente.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Cual es el error :S?

Code:

function HeliTable(theVehicle, seat, jacked) 
local id = getElementModel (theVehicle) 
if id == 487 or id == 497 then 
  table1 = createObject (1698, 0, 0, 0) 
  table2 = createObject (1698, 0, 0, 0) 
----------------------------------------------------- 
     attachElements(table1, theVehicle, 1.5, 1, -1) 
     attachElements(table2, theVehicle, -1.5, 1, -1) 
----------------------------------------------------- 
     outputChatBox ( "#00FF00Paneles Creados.", getRootElement(), 255, 255, 255, true ) 
  else 
     outputChatBox ( "#FF0000No funco!.", getRootElement(), 255, 255, 255, true ) 
  end 
end 
addCommandHandler("paneles", HeliTable) 

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

Posted
function HeliTable ( thePlayer ) 
    local theVehicle = getPedOccupiedVehicle ( thePlayer ) 
    if ( theVehicle ) then 
        local id = getElementModel ( theVehicle ) 
        if ( id == 487 or id == 497 ) then 
            table1 = createObject ( 1698, 0, 0, 0 ) 
            table2 = createObject ( 1698, 0, 0, 0 ) 
            ----------------------------------------------------- 
            attachElements ( table1, theVehicle, 1.5, 1, -1 ) 
            attachElements ( table2, theVehicle, -1.5, 1, -1 ) 
            ----------------------------------------------------- 
            outputChatBox ( "#00FF00Paneles Creados.", getRootElement(), 255, 255, 255, true ) 
        else 
            outputChatBox ( "#FF0000No funco!.", getRootElement(), 255, 255, 255, true ) 
        end 
    end 
end 
addCommandHandler ( "paneles", HeliTable ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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