home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_00_conveyor.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
1KB
|
49 lines
# Jedi Knight Cog Script
#
# 00_conveyor.cog
#
# generic conveyor belt script
#
# This script will control 1-8 conveyor belts moving in the same direction
# and with the same velocity. The conveyors run continuously.
#
# [IS]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
message startup
vector vec0 desc=conveyor_direction
float speed=2.0 desc=conveyor_speed
surface convey0 nolink
surface convey1 nolink
surface convey2 nolink
surface convey3 nolink
surface convey4 nolink
surface convey5 nolink
surface convey6 nolink
surface convey7 nolink
int garbage local
int cnt local
// sound convsound=MCH00tCnvyr01.wav
int volume=0.9
end
# ========================================================================================
code
startup:
for (cnt = 0; cnt<=7; cnt=cnt+1) {
if (convey0[cnt] >= 0) {
garbage=slidewall(convey0[cnt], vec0, speed);
// playsoundpos(convsound, getsurfacecenter(convey0[cnt]), volume, -1, -1, 0x1);
}
}
return;
end