micheal1230 Posted June 16, 2012 Share Posted June 16, 2012 There Are No Errors local objects = { -- haws1290 createObject ( 3359, -1765.4000244141, -37.299999237061, 951.40002441406 ), createObject ( 6189, -1764.8000488281, -45, 937.20001220703 ), createObject ( 6189, -1763.1999511719, -56, 944.40002441406,360,271,270 ), createObject ( 1498, -1768.5, -41.599998474121, 951.70001220703 ) --createObject ( 3359, -1765.4000244141, -37.299999237061, 951.40002441406,0,0,0,0 ), --createObject ( 6189, -1764.8000488281, -45, 937.20001220703,0,0,0,0 ), --createObject ( 6189, -1763.1999511719, -56, 944.40002441406,0,360,271,270 ), --createObject ( 1498, -1768.5, -41.599998474121, 951.70001220703,0,0,0,0 ) } local col = createColSphere(-1768.5, -41.599998474121, 951.70001220703,100) local function watchChanges( ) if getElementDimension( getLocalPlayer( ) ) > 0 and getElementDimension( getLocalPlayer( ) ) ~= getElementDimension( objects[1] ) and getElementInterior( getLocalPlayer( ) ) == getElementInterior( objects[1] ) then for key, value in pairs( objects ) do setElementDimension( value, getElementDimension( getLocalPlayer( ) ) ) end elseif getElementDimension( getLocalPlayer( ) ) == 0 and getElementDimension( objects[1] ) ~= 65535 then for key, value in pairs( objects ) do setElementDimension( value, 65535 ) end end end addEventHandler( "onClientColShapeHit", col, function( element ) if element == getLocalPlayer( ) then addEventHandler( "onClientRender", root, watchChanges ) end end ) addEventHandler( "onClientColShapeLeave", col, function( element ) if element == getLocalPlayer( ) then removeEventHandler( "onClientRender", root, watchChanges ) end end ) -- Put them standby for now. for key, value in pairs( objects ) do setElementDimension( value, 65535 ) end Link to comment
Stanley Sathler Posted June 16, 2012 Share Posted June 16, 2012 Ok, there are no erros in Debugscript. But what is wrong? The objects are not invisible? You must explain better your problems. - Link to comment
micheal1230 Posted June 16, 2012 Author Share Posted June 16, 2012 Ok, there are no erros in Debugscript. But what is wrong? The objects are not invisible? You must explain better your problems.- Well The Objects Are Invisible For Some Reason And There Are No Errors 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