Advertisement
Guest User

useful thingy to store opponent IDs

a guest
Sep 24th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ADD TO "init.gml" SCRIPT
  2. self.other_ref = ds_list_create();
  3.  
  4. // ADD TO "other_post_draw.gml" SCRIPT
  5. if (ds_list_find_index((other_player_id).other_ref, self.id) == -1) {
  6.     ds_list_add((other_player_id).other_ref, self.id)
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement