Timiimit Posted February 4, 2012 Share Posted February 4, 2012 Hi! I want to know what is wrong with this: function detecting( theObject, matchingDimention ) if getElementType ( theObject ) == "object" then botHit() -- some function end end its started by event onColShapeHit and botHit is name of some other function. but when my colShape hits the object nothing happens(doesn't go to botHit() i tested that by adding outputConsole ) Link to comment
Castillo Posted February 4, 2012 Share Posted February 4, 2012 That's because it only detects players or vehicles. wiki quote:This event is triggered when the player or a vehicle hits a colshape. You can use marker's instead, they should detect object's as well. 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