Posted by JM on November 17, 1998 at 19:07:14:
In Reply to: Cog Question - masks posted by matt on November 17, 1998 at 14:24:11:
Okay, this should work.
# Jedi Knight Cog Script
#
# Filename.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Cosymbols
thing moveobj mask=0x404
surface triggersurfmessage crossed
end
# ========================================================================================
code
crossed:
if (GetSourceRef() != moveobj) return;
//put door code here
# ........................................................................................end
if that doesn't work, which it will, it can't be done. Simple, eh? All a mask does is tell the cog to treat it like something its not. Like its wearing a mask. 404 is actor and player. its quarenteed to send all the messages a player can, cept activate, cause it'll never activate anything.