Page 1 of 1

Boat/floating?

Posted: Fri Aug 08, 2003 6:57 pm
by Snake
I made a little boat but, how can i let it floating on the water with some movements?

Thanks,

Posted: Sat Aug 09, 2003 7:21 am
by jv_map
If it is a script_model, you can use the rotateX / Y / Z commands... it does involve quite some scripting though, but you can do that ;)

Posted: Sat Aug 09, 2003 8:49 am
by vonderbakluft
Isn't hard.

Make the boat in your map a script_object (all parts in once and preferrable with a origin textured brush on the spot that assumes to be the center). Call it targetname/myboat

Next script after 'level waittill spawn' in your main:

$myboat thread boat

and after your main:


//**********boat animation to rock the boat*************
boat:
while (1)
{
self time 4
self rotateyup 4
self rotatezup 4
self rotatexdown 2
self waitmove
self time 4
self rotateydown 4
self rotatezdown 4
self rotatexup 2
self waitmove
self time 4
self rotateydown 4
self rotatezdown 4
self rotatexup 3
self waitmove
self time 4
self rotateyup 4
self rotatezup 4
self rotatexdown 3
self waitmove
}
end


That's how we did it in Alsace Adjust the numbers as you like
Von