Posted by Stealth on January 31, 1998 at 03:16:59:
In Reply to: Adding touched message to kyle.cog posted by Raptor [JiB] on January 30, 1998 at 16:35:25:
> Will doing this mean that every time the player touches anything, any effects carried out in this section will be carried out? For example, if it was to play a sound, would the sound be played everytime that Kyle touched anything (actor, crate, floor, walls)? Thanks
Yes every time he touches something that section will be sent a message. You need to limit it to what ever it is you want it to react to.
Lets say you want it to react only to a specific surface ,add
symbols
message touched
surface mysurf linkid=10 # make sure it is a unique linkid numberend
code
touched:
if (GetSenderId() ==10 )
{
do something;
return;
}