Hello. First, please visit http://forums.massassi.net/html/Forum2/HTML/007908.html on details about this message.
Okay. On that note, I need this teleport cog to work with RBots so the bots will teleport also. Thanks to Nightmare for writing this great COG.
Can anyone help? Thank you.
Okay. On that note, I need this teleport cog to work with RBots so the bots will teleport also. Thanks to Nightmare for writing this great COG.
Code:
# teleport.cog # # Teleports the player to a ghost position upon entry into a sector # # Nightmare (6/16/98) #============================================================================ flags=0x240 symbols message entered message startup sector telechamber thing gotospot int player local int dummy local sound telesound=ForceThrow01.WAV template sparks=+telesparks end #============================================================================ code entered: player=GetLocalPlayerThing(); StopThing(player); dummy = CreateThing(sparks, player); dummy = PlaySoundLocal(telesound, 1.0, 0, 0); TeleportThing(player, gotospot); dummy = CreateThing(sparks, player); return; end
Can anyone help? Thank you.