Mann56 Posted January 27, 2015 Share Posted January 27, 2015 Hey guys, I created a gate but it's not movin' Here's my script Server: gate = createObject(985,-1698.5302734375, 1392.7216796875, 7.1786022186279, 0,0,130.67932128906 ) colRect = createColRectangle(-1704.3125,1393.1953125,5,5) addEventHandler("onColShapeHit",colRect, function(thePlayer,matchingDimension) if getElementType(thePlayer) == "Player" || "Vehicle" then outputChatBox("You Entered colshape",getRootElement(),255,255,0) movegate = moveObject(gate , 3000 ,-1704.1123046875, 1398.6796875, 8.4775257110596 ,0,0,130.67932128906) end end) Please Help!!! Link to comment
Castillo Posted January 27, 2015 Share Posted January 27, 2015 if getElementType(thePlayer) == "Player" || "Vehicle" then What's that? Link to comment
Mann56 Posted January 27, 2015 Author Share Posted January 27, 2015 It checks if the element which hits col shape is player or vehicle . Link to comment
Mizudori Posted January 27, 2015 Share Posted January 27, 2015 It checks if the element which hits col shape is player or vehicle . He is talking about this. http://www.troubleshooters.com/codecorn/lua/luaif.htm Link to comment
Mann56 Posted January 27, 2015 Author Share Posted January 27, 2015 It checks if the element which hits col shape is player or vehicle . He is talking about this. http://www.troubleshooters.com/codecorn/lua/luaif.htm Oh thanks I didn't know that. I know C but new in lua so I used that Link to comment
Mizudori Posted January 27, 2015 Share Posted January 27, 2015 It checks if the element which hits col shape is player or vehicle . He is talking about this. http://www.troubleshooters.com/codecorn/lua/luaif.htm Oh thanks I didn't know that. I know C but new in lua so I used that Np mate ^^ happens 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