I tried to whip up a quick driving cog for my new van 3do, but it doesn't seem to do anything at all...
------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net
Quote:
<font face="Verdana, Arial" size="2">
symbols
thing vanpark
template vandrive
template ghost
int driving=1 local
sound honk=accomplish1.wav
message activated
message playeraction
end
# ========================================================================================
code
startup:
SetActionCog(GetSelfCog(), 0x7fffffff);
player = GetLocalPlayerThing();
return;
activated:
if(GetSenderRef == vanpark) {
SetThingModel(vanpark, ghost);
SetThingModel(player, vandrive);
driving = 1;
}
return;
playeraction:
if(driving == 1) {
if(GetParam(0) == 0) {
print("Honk! Honk!");
playsoundlocal(honk, 1, 0, 0x0);
ReturnEx(0);
}
else ReturnEx(1);
}
return;
# ........................................................................................
end
</font>
symbols
thing vanpark
template vandrive
template ghost
int driving=1 local
sound honk=accomplish1.wav
message activated
message playeraction
end
# ========================================================================================
code
startup:
SetActionCog(GetSelfCog(), 0x7fffffff);
player = GetLocalPlayerThing();
return;
activated:
if(GetSenderRef == vanpark) {
SetThingModel(vanpark, ghost);
SetThingModel(player, vandrive);
driving = 1;
}
return;
playeraction:
if(driving == 1) {
if(GetParam(0) == 0) {
print("Honk! Honk!");
playsoundlocal(honk, 1, 0, 0x0);
ReturnEx(0);
}
else ReturnEx(1);
}
return;
# ........................................................................................
end
</font>
------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net