Getchildrenid not on wiki?


#1

Seems if i past that in wiki search there’s no result ?
getchildrenid command not available on the wiki ?

Lucky, i have example on my own private wiki :slight_smile:

(function()
{ 
    this.clickDownOnEntity = function(entityID, mouseEvent) 
	{ 	
		Ent = entityID;

		var copyEnt = Entities.getEntityProperties(Ent, ["rotation","position"]);
		var jsonEnt = JSON.stringify(copyEnt);		
		var data = JSON.parse(jsonEnt);
		var foundEntitiesArray = Entities.getChildrenIDs(Ent) ;
		
		print("found this many entities: "+ foundEntitiesArray.length);
		
		for (var i = 0; i < foundEntitiesArray.length; i++) 
		{
			var copyEntFind = Entities.getEntityProperties(foundEntitiesArray[i]);
			var jsonEntFind = JSON.stringify(copyEntFind);
			var dataFind = JSON.parse(jsonEntFind);			
			print(dataFind.name+" - "+dataFind.id);
		}		
	}
	
	var Ent;
}
)

#2

Slot of thing are not in the wiki nobody has had the time to add them there.

Slot of things are only on GitHub source code.