Jump to content

another question


hissen7

Recommended Posts

idk if map editor have it.

but you can write simple lua script to do it:

  
elems = getElementsByType("object", getResourceRootElement(getThisResource())) 
outputChatBox("Objects count: "..#elems) 
  

save it, add to meta.xml (to your map resource!), start resource

i copied these lines ,and paste into the meta.xml

then i opened the resource but nothing happened , the number of the elements didnt appear............................

please explain what to do, i am new in mapping :roll:

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