This script works but - if new player model "Donovan" has no jump or no attack animation - the engine will shutdown when i try to jump or execute attack.
Do i need any flags with script or somewhere else so it behaves like modelflag 3 for weapons ? PLayer default model has lot of anims - but the one im swapping to has less animations but the engine still tries to play all the animations of player from default model when i press the buttons responsible for triggering the attacks and anims.
Do i need any flags with script or somewhere else so it behaves like modelflag 3 for weapons ? PLayer default model has lot of anims - but the one im swapping to has less animations but the engine still tries to play all the animations of player from default model when i press the buttons responsible for triggering the attacks and anims.
Code:
@script
if(frame==2){
void self = getlocalvar("self");
int PIndex = getentityproperty(self,"playerindex");
changeplayerproperty(PIndex,"name","Donovan");
changeentityproperty(self, "model", "Donovan", 1);
changeentityproperty(self, "name", "Donovan");
setidle(self, openborconstant("ANI_IDLE"));
}
@end_script