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
Lantern power change
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#34
RE: Lantern power change

(05-29-2011, 06:08 PM)DannieWest Wrote:
(05-27-2011, 01:53 PM)Apjjm Wrote: I was thinking of something along the lines of this:
void SetEntityLightVisible(string entity, string light, bool visible)
    {SetLightVisible(entity+"_"+light,visible);}

So basicly, I would be able to script so that when I pick up the lantern, I remove the old one (so there won't be 2 in the inventory) and then just increase the "light power" on the lantern? :o


And sorry bout this lil nooby question, but how do I remove the message from a door when I've used the key on it? >.<
Well, it would work if you can access the lantern in that way - i tested it a little and couldn't get it to work but you might have better luck.
Removing the message can be done simply by running an if-statement check to see if the door is locked before showing the message? You may or may not need to add a variable to track the state of the door depending on your situation.
05-29-2011, 08:22 PM
Find


Messages In This Thread
Lantern power change - by DannieWest - 05-24-2011, 11:39 PM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 12:08 AM
RE: Lantern power change - by DannieWest - 05-25-2011, 12:38 AM
RE: Lantern power change - by Streetboat - 05-25-2011, 01:07 AM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 01:09 AM
RE: Lantern power change - by MrBigzy - 05-25-2011, 02:09 AM
RE: Lantern power change - by vcplz - 05-25-2011, 03:45 AM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 10:51 AM
RE: Lantern power change - by MrBigzy - 05-25-2011, 02:49 PM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 03:31 PM
RE: Lantern power change - by DannieWest - 05-25-2011, 03:32 PM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 03:34 PM
RE: Lantern power change - by DannieWest - 05-25-2011, 07:09 PM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 07:32 PM
RE: Lantern power change - by Apjjm - 05-25-2011, 09:20 PM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 09:35 PM
RE: Lantern power change - by WatzUpzPeepz - 05-25-2011, 09:59 PM
RE: Lantern power change - by Tanshaydar - 05-25-2011, 10:28 PM
RE: Lantern power change - by DannieWest - 05-25-2011, 09:42 PM
RE: Lantern power change - by DannieWest - 05-26-2011, 11:09 AM
RE: Lantern power change - by Tanshaydar - 05-26-2011, 11:54 AM
RE: Lantern power change - by DannieWest - 05-26-2011, 12:50 PM
RE: Lantern power change - by Tanshaydar - 05-26-2011, 12:57 PM
RE: Lantern power change - by DannieWest - 05-26-2011, 09:37 PM
RE: Lantern power change - by Apjjm - 05-26-2011, 11:09 PM
RE: Lantern power change - by Tanshaydar - 05-27-2011, 06:54 AM
RE: Lantern power change - by Apjjm - 05-27-2011, 01:53 PM
RE: Lantern power change - by DannieWest - 05-29-2011, 06:08 PM
RE: Lantern power change - by Apjjm - 05-29-2011, 08:22 PM
RE: Lantern power change - by DannieWest - 05-27-2011, 09:36 AM
RE: Lantern power change - by jens - 05-27-2011, 02:20 PM
RE: Lantern power change - by Tanshaydar - 05-27-2011, 02:26 PM
RE: Lantern power change - by MrBigzy - 05-27-2011, 02:57 PM
RE: Lantern power change - by skypeskype - 05-27-2011, 06:42 PM
RE: Lantern power change - by DannieWest - 05-29-2011, 09:24 PM



Users browsing this thread: 1 Guest(s)