Mann56 Posted January 27, 2015 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!!! "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
Castillo Posted January 27, 2015 Posted January 27, 2015 if getElementType(thePlayer) == "Player" || "Vehicle" then What's that? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Mann56 Posted January 27, 2015 Author Posted January 27, 2015 It checks if the element which hits col shape is player or vehicle . "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
Mizudori Posted January 27, 2015 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
Mann56 Posted January 27, 2015 Author 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 "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
Mizudori Posted January 27, 2015 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
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