Next revision | Previous revision Next revision Both sides next revision | ||
hpl2:tutorials:script:adding_messages_to_locked_doors [2012/03/15 11:03] claypigeon created |
hpl2:tutorials:script:adding_messages_to_locked_doors [2012/04/01 16:40] claypigeon [The door] |
||
---|---|---|---|
Line 17: | Line 17: | ||
- | <Entry Name ="msgname">TYPE MESSAGE HERE</Entry> | + | <Entry Name ="msgname">TYPE MESSAGE HERE</Entry> |
Line 29: | Line 29: | ||
- | The door | + | ====== The door ====== |
Line 46: | Line 46: | ||
If you want the message to show only once, tick the PlayerInteractCallbackAutoRemove box. | If you want the message to show only once, tick the PlayerInteractCallbackAutoRemove box. | ||
+ | |||
+ | Under General tab, name the door to whatever you want. | ||
+ | |||
+ | |||
+ | I'll call it "EXAMPLE_DOOR". | ||
+ | |||
+ | |||
+ | [[{{http://i.minus.com/jpUd9nK0ok06o.png?direct&}}]] | ||
====== The script ====== | ====== The script ====== | ||
Line 68: | Line 76: | ||
- | void DoorLockedPlayer - this is the function that is called when the player interacts with the door | + | void DoorLockedPlayer - this is the function that is called when the player interacts with the door (the one you've set in your level editor!) |
Line 74: | Line 82: | ||
- | "msgname" - this is the name of the message we've set earlier, remember? | + | "msgname" - this is the name of the message we've set earlier, remember? |
Line 81: | Line 89: | ||
PM me for any help, my forum account: ClayPigeon. | PM me for any help, my forum account: ClayPigeon. | ||
- | |||
- | |||
- | {{http://imageupload.org/en/file/200699/wiki.png.html}} | ||