Created
February 16, 2012 05:01
-
-
Save malloc47/1842188 to your computer and use it in GitHub Desktop.
COG Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symbols | |
surface downsect | |
message activated | |
thing ghosttel1 | |
thing ghosttel2 | |
thing player local | |
surface upsuf1 | |
end | |
code | |
activated: | |
if (GetSenderRef() == upsuf1) | |
{ | |
player = GetLocalPlayerThing(); | |
TeleportThing(player, ghosttel1); | |
return; | |
} | |
if (GetSenderRef() == downsect) | |
{ | |
player = GetLocalPlayerThing(); | |
TeleportThing(player, ghosttel2); | |
return; | |
} | |
return; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment