Jump to content

Multiple Markers


DarkLink

Recommended Posts

Posted

i dont know if the typestring of the markes are case sensitiv but this can be solve the problem

the first ones are correct but the others have capitals in it "cylinder" "Cylinder"

mfg flobu

Posted

Thanks for ur suggestion eAi, but I dont know yet how to manage elements between map files and script files, how to call them and such.

But should I ? It improves game smooth or what kind?

Posted

It doesn't really, as far as I know. Personally, I prefer declaring my markers in the script. That way if I need to change that script, it's all in one file.

Map files are technically the "correct procedure," though, I guess.

Posted

If you use map files, people can write maps for your gamemodes using the editor, you can have elements specified in multiple resources. Making scripters modify your resource asks for errors, it also means that it has to be downloaded repeatedly if the same resource is used on more than one server.

Use getElementsByType("mySpecialMarker"), iterate over the list returned and then create markers based on them, or something similar instead.

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