Jump to content

setElementInterior e Dimension


Recommended Posts

Alguem pode me ajudar, quero colocar um objeto de uma porta em um interior. Preciso saber onde coloco o setElementInterior e o setElementDimension. Ja tentei aqui mais o objeto fica invisivel no interior.

myGate1 = createObject ( 980, 1540.6999511719,-1625.9000244141 ,15.10000038147,360, 360, 90  )
Zona = createColCircle ( 1540.303, -1626.207, 6, 6 )


function Portao1(thePlayer)
	    if getElementData(thePlayer, "char.factionID") == 190 then
		
			
            moveObject (myGate1, 3000, 1540.7001953125,-1625.900390625,20.39999961853 )
end
end
addEventHandler ( "onColShapeHit", Zona, Portao1 )


function Portao2(thePlayer)
if getElementData(thePlayer, "char.factionID") == 190 then
			
		moveObject (myGate1, 3000, 1540.6999511719,-1625.9000244141 ,15.10000038147  )
end

end
addEventHandler ( "onColShapeLeave", Zona, Portao2 )

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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