Unfortunatyl I never tried them, that is I found in Locutus' version of the SLIC1 documentaion:
Quote:
|
INT GetNearestWater(location, locationvar)
Get the location of the nearest ocean square to location, putting the result in locationvar. Also returns the distance in patched version.
INT FindCoastalCity(player, cityvar)
Find a city next to the ocean and put it in cityvar. Returns 0 if no coastal cities are found.
|
Probably you already got what they mean. So my solution would be brute force, the Trial and Error method of testing all possible variable types. Fortunatly we only have location_t, army_t, city_t, int_t and unit_t if I did not forgot anyone. But actual stupid to give the first function a unit_t as argument.
For the second function I could give you an explanation or at least an idea, in the SLIC2 documentaion you find this:
player.owner - An integer version of the player.
That means there is a difference between integers and players, the only problem is that in most situation players and ints should be interchangable. But if you use DebugSlic=Yes you figure out that you should care attention if you are using ints or players.
-Martin