Hey ya, I made a new entity with a script with the name gameobject_actor.Then I added a property with the name "actortype" with a dropdown box "player,npc0"
So I placed one actor in the scene and gave him "player" as actortype.
Then I saved it and saw the following code in the scene file;
[/size]
Model {
path="gameobject_actor.gmf"
position=-2.88000011,1.30999994,-6.30000019
rotation=-0.000000000,0.000000000,0.000000000
scale=1.00000000,1.00000000,1.00000000
id=236444968
"actortype"="0"
"class"="Model"
"intensity"="1.0"
"name"="player_spawn0"
}
But now when I go through the scene entity ( for( int i = 1; i < CountChildren(entity); i++)) and get with GetChild(entity,i) each child of the scene. Then I get the Key from each entity with: GetEntityKey(GetChild(entity,i),"actortype")) and print that out in a console.
But I don't get a result, no values with the key "actortype" ....
Well I don't realy know what to do now....maybe somebody has an idea.
Thanks