User Tools

Site Tools


hpl2:tutorials:script:adding_messages_to_locked_doors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next 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:44]
claypigeon [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>​
hpl2/tutorials/script/adding_messages_to_locked_doors.txt · Last modified: 2014/07/04 11:21 by romulator