Hi all,
I've got the trigger system working the way I need it but I'm having an issue with integrating it into the Multiplayer Game Template. I know I need to identify the 'player' who is hitting the trigger but I'm unsure how to do so. I think the player identity is in this code:
{
if(my.player_id > 0 && !my.client_id) str_cpy(str_pl_names[my.player_id-1],"Server Player");
}
mp_random_assign(my);
But I'm unsure how to call that up in the trigger. Right now I keep getting an undeclared identifier error. The above code creates an unique id for each multiplayer, right? How do I look for that in the trigger code:
{
c_scan(my.x, my.pan, vector(360, 180, t_switch_range), IGNORE_ME | SCAN_ENTS);
if(you)
{
if((you == ent_players[i]])&&(key_space))
{
for(you = ent_next(NULL); you; you = ent_next(you))
{
if(you.skill99 == 100)
{
if(you.skill1 == my.skill1)
Any light you can shine on this one would be greatly appreciated.