Jump to content

Dynamic Housesystem


AndyStyle

Recommended Posts

Hey guys,

I have made an dynamic housesystem with create / load / save functions. These works.

Create the marker:

house[current] = createMarker(....) 

Now I have a problem with the event 'onMarkerHit' because my marker does not have a fixed variable so I can not do this:

  
addEventHandler("onMarkerHit",function enter(source) 
for i = 1, maxhouse do 
return i 
end 
end 
,enter123) 

or this:

  
addEventHandler("onMarkerHit", enter(source), enter123) 
  
function enter(theplayer) 
for i = 1, maxhouse do 
return i 
end 
end 

Have anyone a idea how to fix this.

- AndyStyle

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...