+NOABOVEWATER?
Moderator: GZDoom Developers
-
Enjay
-

- Posts: 27477
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
-
Phobus
- Posts: 5984
- Joined: Thu May 05, 2005 10:56 am
- Location: London
-
solarsnowfall
- Posts: 1581
- Joined: Thu Jun 30, 2005 1:44 am
-
Kirby
- Posts: 2697
- Joined: Thu Aug 26, 2004 1:23 pm
-
justin024
- Posts: 379
- Joined: Sun Nov 14, 2004 1:29 am
- Location: Illinois
Would something like this not work? I am pretty sure it would for the most part. You just want the easy way out. Make sure to use acs_executealways! You might want to double check all that yourself before actually applying it 
EDIT: I have applied this script to my mod and it seems to work well
Code: Select all
int fish[3] = {1, 2, 3}; //Each fish has its own tid
int i = 0; //index counter
#define water_height -128 * 65536 //water limit, probably a good idea to be slightly lower than the actual fake floor, especially if there are terrain splashes
script 1 (void)
{
i=0;
while (i < 3)
{
if (getactorz(fish[i++]) >= water_height)
{
thrustthingz(fish[i - 1], 160, 1, 0);
}
}
delay(15);
i = 0;
while (i < 3)
{
if (thingcount(t_none, fish[i++]) > 0)
{
restart;
}
}
}