Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help scripting an event when looking at an area
Akasu Offline
Member

Posts: 62
Threads: 6
Joined: Aug 2010
Reputation: 2
#4
RE: Help scripting an event when looking at an area

The functions for that are
SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction)
; (you know the drill. It's done the same way as in the 'SetEntityPlayerLookAtCallback'. The 'bool abRemoveOnInteraction' is true if you want the message to show only once and false if the message is displayed every time you interact with the door.)

and
SetMessage("Crap","Door",-1);

Plus, you'll need to make a text file called "extra_english.lang" into your custom story folder and write these lines in it:
<LANGUAGE>
<CATEGORY Name="Crap">
<Entry Name="Door">It's locked</Entry>
</CATEGORY>
</LANGUAGE>
That is just an example. You can name the category and other stuff anything you want.

Also check out this page if you haven't yet.
(This post was last modified: 02-11-2011, 06:54 PM by Akasu.)
02-11-2011, 06:52 PM
Find


Messages In This Thread
RE: Help scripting an event when looking at an area - by Akasu - 02-11-2011, 06:52 PM



Users browsing this thread: 1 Guest(s)