is there any way to spawn a enemy with a weapon at the moment I am using a script to change weapon after spawn but i cant find any default way to do this built into the engine.
nsw25 said:Check my urban lockdown game. Imnot at a computer till tonight but i have this in my game and works fine
@script
void self = getlocalvar("self");
int HP = getentityproperty(self,"health");
if ( HP == 20 ){
changeentityproperty(self, "weapon", 1);
}
if ( HP == 30 ){
changeentityproperty(self, "weapon", 2);
}
if ( HP == 40 ){
changeentityproperty(self, "weapon", 3);
}
}
@end_script