irrEdit....extend the SceneNode propertylist
irrEdit....extend the SceneNode propertylist
Is there a way to extend the scenenode properties in irrEdit? to like set life points?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
I think you'd have to change some Irrlicht sources to achieve this as long as there isn't any common "tag" or "userdata" attribute. At least I haven't heard of any yet.
You should store your game data in your own format/class. You could create a class containing everything you need including a pointer to an ISceneNode. And then manage everything inside a vector, list or map (stl).
Then in IrrEdit you don't place any monsters - you just place boxes (for example) and use one (or more) of their attributes to define their "monster id" (or something compareable - maybe the color values?) and after loading you just parse those information and then drop/delete those boxes again. Another solution would be to save monster data etc. in a custom file and load it yourself.
You should store your game data in your own format/class. You could create a class containing everything you need including a pointer to an ISceneNode. And then manage everything inside a vector, list or map (stl).
Then in IrrEdit you don't place any monsters - you just place boxes (for example) and use one (or more) of their attributes to define their "monster id" (or something compareable - maybe the color values?) and after loading you just parse those information and then drop/delete those boxes again. Another solution would be to save monster data etc. in a custom file and load it yourself.
Yeah but there is an option to add userdata in irredit but isn't working....
ohh and i can't get the type of mesh with
irrGetSceneNodeProperty([node], "Type")
it says the property "Type" does not exist.
ohh and i can't get the type of mesh with
irrGetSceneNodeProperty([node], "Type")
it says the property "Type" does not exist.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Sry to pump....but isn't there anyone who could help me?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
@vitek
it's one of the script functions in irredit
it's one of the script functions in irredit
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.