iFoReX Posted March 23, 2012 Posted March 23, 2012 My elevator Dont Up :c local objeto = createObject ( 2669, 1093.67834, -2704.56226, 8.48407, 0, 0, 0) local Col = createColCuboid ( 1093.67834, -2704.56226, 8.48407, 3, 8, 4 ) function Elevador(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Everyone" ) ) then moveObject(objeto,5000 ,1093.67834, -2704.56226, 16) setTimer (moveObject, 5000, 1, objeto, 5000, 1093.67834, -2704.56226, 16) end end addEventHandler("onColShapeHit",Col,Elevador) What is bad ?
Castillo Posted March 24, 2012 Posted March 24, 2012 It does work, the elevator goes up, I'm pretty sure your problem is that you created the colshape in a wrong place, is not in the elevator. Use: setDevelopmentMode to enable the command /showcol, this way you can see the colshapes.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 ok solid but I want when the player is in the elevator the elevator up dont with commands u can help me please
Castillo Posted March 24, 2012 Posted March 24, 2012 Did you even read what I said? you must move the colshape.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 Solid I done this I think this is bad but I dont know how fix local objeto = createObject ( 2669, 1093.67834, -2704.56226, 8.48407, 0, 0, 0) local Col = createColCuboid ( 1093.67834, -2704.56226, 8.48407, 3, 8, 4 ) function Elevador(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Everyone" ) ) then moveObject(objeto,5000 ,1093.67834, -2704.56226, 16) setTimer (moveObject, 5000, 1, objeto, 5000, 1093.67834, -2704.56226, 16) end end addEventHandler("onColShapeHit",Col,Elevador) function verCol() setDevelopmentMode(true) end end addCommandHandler("verc", verCol ) function noverCol() setDevelopmentMode(false) end end addCommandHandler("borrarc", noverCol )
Castillo Posted March 24, 2012 Posted March 24, 2012 The function I told you to use is not to fix your gates script, is to enable the /showcol command.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 I typed /showcol but dont appear the Cols :c
DNL291 Posted March 24, 2012 Posted March 24, 2012 start Runcode, /crun setDevelopmentMode(true), /showcol
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 I typed ur idea but tell me ERROR : start: Resource 'runcode' started Executing client-side command: setDevelopmentMode(true), /showcol Error: [string "setDevelopmentMode(true), /showcol"]:1: unexpected symbol near ','
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 the elevator dont up and now I fix the pos of my Col Help me please
Castillo Posted March 24, 2012 Posted March 24, 2012 It worked here, I hit the colshape, and the elevator started.
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