Cristtk Posted June 25, 2020 Share Posted June 25, 2020 Ola como faço pra criar um ColCboid? Ja tentei usar as instruções do https://wiki.multitheftauto.com/wiki/CreateColCuboid e não consegui. Se alguem puder me ajudar agradeço. Link to comment
Other Languages Moderators Lord Henry Posted June 26, 2020 Other Languages Moderators Share Posted June 26, 2020 Mostre o que você tentou fazer. Link to comment
Cristtk Posted June 26, 2020 Author Share Posted June 26, 2020 Coloquei essa linha de codigo do lado serve. theZone = false function shapeHit ( thePlayer ) outputChatBox ( getPlayerName ( thePlayer ) .. " is in the zone!" ) end function setZone ( playerSource, commandName, fX, fY, fZ ) if ( fZ and fY and fX ) then local tempCol = createColCuboid ( fX, fY, fZ, 10.0, 10.0, 10.0 ) if ( tempCol == false ) then outputConsole ( "Syntax is: set_zone <X> <Y> <Z>" ) else if ( theZone ~= false ) then destroyElement ( theZone ) else addEventHandler ( "onColShapeHit", theZone, shapeHit ) end theZone = tempCol outputChatBox ( "Zone has moved!" ) end end end addCommandHandler ( "set_zone", setZone ) Link to comment
Other Languages Moderators Lord Henry Posted June 26, 2020 Other Languages Moderators Share Posted June 26, 2020 fX, fY, fZ são strings e não números. Em vez disso, experimente usar a posição do player em vez de declarar a posição no comando. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now