Posted by Gonk on June 28, 1998 at 10:47:56:
In Reply to: ctf cog conversion posted by Kenobi on June 28, 1998 at 04:56:23:
Alan Farrell wrote this:
# Jedi Knight Cog Script
#
# teleportswitch.cog
#
# When activated, teleports player to specific place
#
# Author: Alan Farrell
# THIS LEVEL IS NOT MADE, DISTRIBUTED, OR SUPPORTED BY LUCASARTS
# ENTERTAINMENT COMPANY. ELEMENTS TM & (C) LUCASARTS ENTERTAINMENT COMPANY.
symbols
surface switch
thing dest nolink
thing dummy nolink
int player local
int dummy local
sound SwitchOnSound=activate02.wav local
message activated
message startup
template teleport_particles=+telesparks local
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
Return;
# ........................................................................................
activated:
TeleportThing(player, dest);
dummy = CreateThingAtPos(teleport_particles, GetThingSector(player), GetThingPos(player), '0 0 0');
Return;
end