Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hpl2:tutorials:script:adding_messages_to_locked_doors [2012/04/01 16:43] claypigeon [The script] |
hpl2:tutorials:script:adding_messages_to_locked_doors [2012/04/01 16:48] claypigeon [The door] |
||
---|---|---|---|
Line 53: | Line 53: | ||
- | [[{{http://i.minus.com/jpUd9nK0ok06o.png?direct&}}]] | + | {{http://oi43.tinypic.com/656cs3.jpg?nolink&}} |
====== The script ====== | ====== The script ====== | ||
Line 62: | Line 62: | ||
<code c++> | <code c++> | ||
- | + | ||
void DoorLockedPlayer(string &in entity) | void DoorLockedPlayer(string &in entity) | ||
- | + | ||
+ | |||
{ | { | ||
- | |||
- | |||
if(GetSwingDoorLocked("EXAMPLE_DOOR") == true) | if(GetSwingDoorLocked("EXAMPLE_DOOR") == true) | ||
- | |||
- | |||
{ | { | ||
- | + | ||
SetMessage("Messages", "msgname", 0); | SetMessage("Messages", "msgname", 0); | ||
- | + | ||
} | } | ||
- | |||
- | |||
} | } | ||
</code> | </code> |