Jump to content

AndyStyle

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by AndyStyle

  1. 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

×
×
  • Create New...