Quote: "If we already know it, we can use it instead of entity object number"
Yes and not.
Assume you've 10 soldiers, with number 500 to 510
Soldier01, soldier02, soldier03 .....soldier10
Imagine you want to spawn then.
Using names you do:
spawn("Soldier01")
spawn("Soldier02")
spawn("Soldier03") -- and so on till spawn("Soldier10") - as you can see, too long.
using entity numbers/index:
For i= 500,510,1 do
spawn(i)
end
As you can see is better work with indexes.
We have to be able to referenced entity from anybody script.
Currently we can use entity index, but Reloaded sometime change this number.
The above code work for me, I save it, close and reopen it, then the above code does not work for me. Why? Because Reloaded change one entity number, now all the soldiers are 500, 501, 502, .....509, except the 510 one, that now it is number 84, why? I don't know.
I thought that to be able to set index via entity properties panel, could help.
3com