Posted by Rishka on May 28, 1998 at 18:47:11:
In Reply to: moving fire posted by Kenobi on May 28, 1998 at 01:48:06:
: Is there a cog that you can assign to make the "Fry.mat"
: move? Looking to do a camp fire or fire place type set up.
: I tried using the "neonsign.cog" just for the flicker thing
: but it did not work at all. Any help please.
Here, try this cog from JK. It slides the texture across a surface. Hope this is what you're looking for.
# Jedi Knight Cog Script
#
# 10_surfmove.cog
#
# This script is to move a texture across a surface at beginning of level 10 to simulate a closing door.
#
# [DB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbolsmessage startup
vector vec0 desc=door_direction
float speed=0.25 desc=door_speed
int anim0 localsound doorstart=df_Door2-1.wav local
sound doorclosing=df_Door2-2.wav local
sound doorstop=df_Door2-3.wav local
sound dialogue=i00ky36z.wavsurface doorsurface
thing door_dummyint channel=-1
end
code
startup:
anim0=slidewall(doorsurface, vec0, speed);
playsoundthing(doorstart, door_dummy, 1.0, -1, -1, 0);
channel=playsoundthing(doorclosing, door_dummy, 1.5, -1, -1, 1);
sleep(2.5);
StopSound(channel, 0.1);
playsoundthing(doorstop, door_dummy, 1.0, -1, -1, 0);stopsurfaceanim(doorsurface);
sleep(2.5);
playsoundlocal(dialogue, 1, 0, 132);
return;end