Hello Citizens
Rapid question:
In my game the object spawns like group (calling a group directly builds a character with mesh,armature,weapon,effect and they are grouped togheter)
Now my problem is that i can set with Python the character stats, but could be nice that character reads the group property and change directly.
Now is like:
spawnEnemy(Groupenemy)
GroupEnemy is an assigned AIbox with some Stats ,an Armature and some cosmetic items. (Always,never change if there is not a subroutine)
Currently for different AIbox i need build different AIbox objects (sniper,charger,soldier,riotcivilian,paniccivilian,zombi,uglyzombie,superzombi) and different Groupenemy for each one.
I would that AIbox read the property (typeEnemy ) in Group and transform its AIbox stats.
something like this:
NewChar = spawnEnemy(Groupenemy)
NewChar[‘aProperty’]= “beZombi”
NewChar2 = spawnEnemy(Groupenemy)
NewChar2[‘aProperty’]= “beUglyZ”
NewChar3 = spawnEnemy(Groupenemy)
NewChar3[‘aProperty’]= “paniccivilian”
in another part of code:
Aibox[aProperty]= Aibox.HisGroup[‘aProperty’]
In this way i should avoid to change manually the Aibox property for each obj.