ertlflorian1 Posted October 29, 2012 Share Posted October 29, 2012 Hi it wouldnt work no error local keyped1 = createObject (2922, -1788.25, 1308.6500244141, 23.299999237061, 0, 0, 90) addEventHandler("onElementClicked",keyped1, function( but, stat, thePlayer) outputChatBox ("test", thePlayer, 0,255,0) end) Link to comment
TAPL Posted October 29, 2012 Share Posted October 29, 2012 Make sure you have it server side in meta.xml Link to comment
Anderl Posted October 29, 2012 Share Posted October 29, 2012 Either object has not been created, there's some error that I didn't see or you don't really have it server-side. Show meta.xml. Link to comment
TAPL Posted October 29, 2012 Share Posted October 29, 2012 I have test the code, your object look small and it really doesn't trigger the event onElementClicked, the solution is create other object can trigger the event onElementClicked in same place of your small object and set its alpha to 0 and set its collision to false. Link to comment
ertlflorian1 Posted October 30, 2012 Author Share Posted October 30, 2012 Thank you very much 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