Skip to content

Instantly share code, notes, and snippets.

@malloc47 malloc47/ladder1.cog
Created Feb 16, 2012

Embed
What would you like to do?
COG Example
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
You can’t perform that action at this time.