Piorun Posted June 2, 2012 Posted June 2, 2012 Hi guys. I want to ask why when i make something like that: createRadarArea(983.08239746094, 691.31982421875, 1900, 2200, 0, 255, 0, 175) local lvCol = createColRectangle(983.08239746094, 691.31982421875, 1900, 2200) and enter into this ColRectangle (i have functions handled to correctly events) event doesn't works correctly (anyway nothing happend). What i'm doing wrong? Meybe some parametrs are wrong? Anyway no errors in debug.
myonlake Posted June 2, 2012 Posted June 2, 2012 createRadarArea(983.08239746094, 691.31982421875, 1900, 2200, 0, 255, 0, 175) local lvCol = createColRectangle(983.08239746094, 691.31982421875, 1900, 2200) addEventHandler("onColShapeHit", lvCol, function(hitElement, matchingDimension) if getElementType(hitElement) == "player" then if matchingDimension then outputChatBox("You entered a collision shape rectangle.", hitElement, 255, 255, 255, false) end end end )
Piorun Posted June 2, 2012 Author Posted June 2, 2012 oO ... Don't know what was wrong in my code but myonlake's code working so good. Thank you and another q: How to create radar area which be show on bottom-left corner radar, cause I create areas with createRadarArea and i see them only in F11 map.
myonlake Posted June 2, 2012 Posted June 2, 2012 It should show up on your radar as well, just go near the area and there it is. You're welcome.
Piorun Posted June 2, 2012 Author Posted June 2, 2012 Ye i was in area and don't shown it on game-hud-radar. I still can saw them on F11 map. Meybe i should create it client-side?
myonlake Posted June 2, 2012 Posted June 2, 2012 You cannot remove the radar from F11 or radar hud separately. You can disable the radar hud or F11 though.
Piorun Posted June 2, 2012 Author Posted June 2, 2012 ok ok but i see my radar areas only on F11 map and i want to see them on F11 map and hud's radar. How?
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