fow_in, but I do not know what it does.
Does anybody know?
 
  CS2D
 CS2D  Scripts
 
Scripts  What Does The fow_in Function Do
 What Does The fow_in Function Do What Does The fow_in Function Do
 What Does The fow_in Function Do 
  1
 1  
 
fow_in, but I do not know what it does.
 player ID (it checks if the coordinate is inside the visible area of THAT specific player)
 player ID (it checks if the coordinate is inside the visible area of THAT specific player) X coordinate to check (in pixels, not tiles)
 X coordinate to check (in pixels, not tiles) Y coordinate to check (in pixels, not tiles)
 Y coordinate to check (in pixels, not tiles) DC: Does that function always return 0 if fog of war is disabled?
 DC: Does that function always return 0 if fog of war is disabled?  DC. I even asked for that in the ideas thread back in the day. Also remember
 DC. I even asked for that in the ideas thread back in the day. Also remember  Rainoth was against the idea because he didn't get the point of such a function and he claimed you can do a very similar checker with just basic Lua on your own. I always thought it'd be cool to have it in the original game since it is kinda expensive to do it yourself (also would be less accurate). I wish it was documented all these years, can't imagine how many beautiful things you could have done with it...
 Rainoth was against the idea because he didn't get the point of such a function and he claimed you can do a very similar checker with just basic Lua on your own. I always thought it'd be cool to have it in the original game since it is kinda expensive to do it yourself (also would be less accurate). I wish it was documented all these years, can't imagine how many beautiful things you could have done with it...  Masea: I've added it not long ago. Probably in the last version.
 Masea: I've added it not long ago. Probably in the last version. fow_in
 fow_in  
  The Dark Shadow: What does the script look like which always gives you a 1 as return value? Make sure you're getting the parameters right. Especially the order and the fact that the coordinates are in pixels and not in tiles.
 The Dark Shadow: What does the script look like which always gives you a 1 as return value? Make sure you're getting the parameters right. Especially the order and the fact that the coordinates are in pixels and not in tiles. SQ implemented it and I never tested it.
 SQ implemented it and I never tested it. DC: I don't know why last time it didn't work, I tested it once again and it worked properly, maybe there is something wrong with it sometimes. Anyways, thanks!
 DC: I don't know why last time it didn't work, I tested it once again and it worked properly, maybe there is something wrong with it sometimes. Anyways, thanks!  
  1
 1  
 