Bloodbane
Well-known member
Is it possible to setup multiple parents to the NPC and setup multiple NPC's to 1 parent?
The former is impossible cause an entity can only have one parent. The latter is possible.
Enemies and NPCs won't perform FREESPECIAL if they don't have enough MP already.is there a way to setup how often the NPC will use the attack or FREESPECIAL only when the mp is available?
Can you please give me an example of this?
Do you know how to use animationscript? if you know, I could share a function for that purpose.
But for now, there's sample script I could share to show what I mean with parent setting:
Code:
spawn Anita
@script
void main()
{
void P1 = getplayerproperty(0, "entity");
void self = getlocalvar("self");
changeentityproperty(self,"parent", P1);
}
@end_script
map 2
coords 100 220 1
at 0
Anita is NPC with subtype follow.
Try declaring that script to your NPC and see what happens