I made a little boat but, how can i let it floating on the water with some movements?
Thanks,
Boat/floating?
Moderator: Moderators
-
vonderbakluft
- Corporal
- Posts: 46
- Joined: Fri Aug 01, 2003 11:15 am
- Location: NL
- Contact:
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
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
Real mappers map in wordpad 
