Black2 Posted March 14, 2015 Share Posted March 14, 2015 Hello,I created a resource and He opens a window When you enter into a cylinder, This window is in dimension 1 but can open it from other dimensions as I fix this? Thx Link to comment
xeon17 Posted March 14, 2015 Share Posted March 14, 2015 (edited) onMarkerHit and onClientMarkerHit have a dimension parameter. addEventHandler("onMarkerHit",root, function (hitPlayer,Dimensions) if hitPlayer.player and Dimensions then hitPlayer:outputChat("You hit the marker") end end) Edited March 15, 2015 by Guest Link to comment
#RooTs Posted March 15, 2015 Share Posted March 15, 2015 @xeon, I think You Didn't closed the function properly, you should use ")" at the end. addEventHandler("onMarkerHit",root, function (hitPlayer,Dimensions) if hitPlayer.player and Dimensions then hitPlayer:outputChat("You hit the marker") end end) Link to comment
xeon17 Posted March 15, 2015 Share Posted March 15, 2015 I wrote the example very fast and forget it, thanks for telling me 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