Advertisement
CaptainLepidus

GM Problem

Mar 21st, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Ok, if en[k,1] is the x of entity k, en[k,2] is the y, en[k,4] is alive/dead and dx,dy is the players //coordinates...shouldn't this return if the entity k is next to the player?
  2. if ( abs( en[ k , 1 ] - dx ) <= 1 or abs( en[ k , 2 ] - dy ) <= 1 ) and en[k , 4 ] == 1
  3. {
  4. //do stuff
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement