dantedevil
Well-known member
I want to modify the script of this animation, so that I can give score to all the players that are in game. This is for the bonus stage, so if they succeed, give the bonus to both.
My mod has 3 players in game.
My mod has 3 players in game.
Code:
anim follow1
delay 1
offset 1 1
@script
if(frame==1){
void target = getlocalvar("opponent");
int PIndex = getentityproperty(target,"playerindex"); // Get player's index
int PScore = getplayerproperty(PIndex, "score");
changeplayerproperty(PIndex, "score", PScore+15000);
}
@end_script
frame data/chars/misc/empty.png
Last edited: