Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-target #1

Closed
Taavi-AU opened this issue Feb 23, 2022 · 0 comments
Closed

meta-target #1

Taavi-AU opened this issue Feb 23, 2022 · 0 comments

Comments

@Taavi-AU
Copy link
Collaborator

Taavi-AU commented Feb 23, 2022

converting mf-housing-v3 for meta-target, using the remove export to remove the points etc, this doesnt seem to fully work correctly, e.g I can just move from the door and it doesnt remove the options for the door, yeah the polyZone optins show up, after leaving the polyZone of the first house and creating another and going to the door it doubles up on the options, unless this is a me issue of not doing it correclty

for example

Housing.CreateTargetPoint = function(name,targetOption,targetIndex,position,vars)
  if Config.TargetOptions[targetOption] and Config.TargetOptions[targetOption][targetIndex] then
    exports["meta-target"]:addPoint({
      id = name,
      title = Config.TargetOptions[targetOption][targetIndex].label,
      icon = Config.TargetOptions[targetOption][targetIndex].icon,
      point = position,
      radius = 2.5,
      onSelect = Housing.OnInteract,
      items = Config.TargetOptions[targetOption][targetIndex].options,
      vars = vars
    })
  end
end
meta-hub added a commit that referenced this issue Mar 1, 2022
Corrects typo in remove function. Fixes #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant