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
How do I remove callback for oil etc.?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: How do I remove callback for oil etc.?

You'll need to create a custom oil item. Since the default oil is of the potion type, it is consumed as soon as you use it. And you can always script in the tinderbox lighting part. Create an area where you want the oil slick to be, and add the item use callback for the oil. Once it is used, deactivate the oil area and activate an similar area which is a player interaction area (put your callback name in the PlayerInteractCallback). Then with script, change the focus-over icon to the tinderbox icon with SetEntityCustomFocusCrossHair(string& asName, "Ignite");. In the callback, check to make sure the player has a tinderbox (I think you can use HasItem("tinderbox") but if it doesn't work, use a global variable throughout your game to track it) and then upon use, remove 1 tinderbox.

(This post was last modified: 08-17-2011, 08:53 PM by palistov.)
08-17-2011, 08:52 PM
Find


Messages In This Thread
RE: How do I remove callback for oil etc.? - by palistov - 08-17-2011, 08:52 PM



Users browsing this thread: 1 Guest(s)