@LeeBamber
Quote: "You can get the entity name with this command:
string = GetEntityFilePath ( e )"
Thanks lee for your reply
Quote: "GetEntityFilePath : string = GetEntityFilePath ( e ) -- returns the entity file path to be used for helping inventory image systems"
As global says that is good for the file name but I was interested in the name you enter in the properties box.
As I understand it multiple entries can have the same name so the can be spawned together.
So I can have a group all named enemySquad1 constituting of say a couple of soldiers, a mortarman etc.
I could then spawn with one command which is great .
But if I want to know if they are all dead for points or before re-spawning them I need to make a separate table and modify their individual ai scripts to hard code their names
so they can be added to the table. Forcing me to maintain multiple versions of basically the same scripts(the only difference being the name which is already in the proprieties!) .
Being able to grab the name directly from the properties fields would be much easier as I would not need separate sets of scripts for each entity name.
I can not imagine it would be hard to add.
You have to be able to access the name property for both the spawnifused and transportifused commands (you must take the ifused field and compare it to the name field both of which are property fields in the entity.
Also being able to grab the name directly from the properties could make setting up basic conversation systems easier. Just an idea.
@Belidos
Setting up a table with entity names in it is certainly one way to go.
I was hoping to leverage the name that was already stored in the entity properties field name.
Having 2 sets of names to juggle for each group while developing is a pain. I would have to make copies of all the ai scripts for each group simply to and the correct name to the table.
Accessing the property fields for an entity in lua is just an idea, A good one I think.
Anyway I am taking a break at the moment from GG to explore AGK ( wish I had time to do both but there's these little things like eating,sleeping etc I have to squeeze it)
Thanks guys
Pleasure as always
THE GLACIER IN THE MOUNTAIN MUST MELT BEFORE THE RICE IN THE VALLEY CAN GROW.
CPU:i7-4720HQ Mem: 16G Graphic: GTX 980M 8G and intel HD4600 OS: Windows10