mersox
Active member
Hi all.
I have tried unsuccessfully to force a character selection in a given stage. Basically, I want players to use specific characters during the map. Usually you just make them use a weapon in that particular level (map), but in my case I have an extra problem to overcome: I want a specific character per player. In ther words:
Player 1 would be Leonardo ("leo_overhead")
Player 2 would be Michaelangelo("mike_overhead")
Player 3 would be Donatello ("don_overhead")
Player 4 would be Raphael ("raph_overhead")
skipselect doesn't work because the map comes up after each level, and skipselect seems to work only with the first level of a game.
SO have been trying to use script in the map level. I have tried different examples and none works. Here are a couple:
or
Ideas?
I have tried unsuccessfully to force a character selection in a given stage. Basically, I want players to use specific characters during the map. Usually you just make them use a weapon in that particular level (map), but in my case I have an extra problem to overcome: I want a specific character per player. In ther words:
Player 1 would be Leonardo ("leo_overhead")
Player 2 would be Michaelangelo("mike_overhead")
Player 3 would be Donatello ("don_overhead")
Player 4 would be Raphael ("raph_overhead")
skipselect doesn't work because the map comes up after each level, and skipselect seems to work only with the first level of a game.
SO have been trying to use script in the map level. I have tried different examples and none works. Here are a couple:
spawn delay
@script
void self = getlocalvar("self");
void p1 = getplayerproperty(0,"entity");
void p2 = getplayerproperty(1,"entity");
void p3 = getplayerproperty(2,"entity");
void p4 = getplayerproperty(3,"entity");
{
changeplayerproperty(0, "model", "leo_overhead");
changeplayerproperty(1, "model", "mike_overhead");
changeplayerproperty(2, "model", "don_overhead");
changeplayerproperty(3, "model", "raph_overhead");
}
@end_script
health 20
coords 160 185
at 0
or
spawn delay
@script
void main()
{
changeplayerproperty(0, "model", "leo_overhead");
changeplayerproperty(1, "model", "mike_overhead");
changeplayerproperty(2, "model", "don_overhead");
changeplayerproperty(3, "model", "raph_overhead");
}
@end_script
health 20
coords 160 185
at 0
Ideas?