The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help Lighting a stove and billboard
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
Lighting a stove and billboard

So, here's my problem. My CS is focused on realism, as a lot want. So, the place where this stove is, is in a place with a lot of dust. I want that the bonfire, when lit, casts a billboard too. So, in the level editor is impossible, but I thought of one thing:

AddUseItemCallback("", "tinderbox" + i, "bonfire", "Lit_stove", true);

void Lit_stove(string &in asEntity, string &in asEntity)
{
FadeLightTo("Light", 1, 1, 1, 1, true);  /////I think is something like that.
}

So, instead using the tinderbox in a bonfire with a connected light that makes shadows (what I currently have), a tinderbox that when used would lit everything by script. I need more help on the "tinderbox + i" part, is where I get lost. I could make a callback for every single tinderbox, but I would have to name them all.

Do I need a "for" for this? Also, is this possible? The billboards are connected to the light and jens said in a thread that the billboard could be activated and deactivated (it's spelled this way?) by connecting a billboard to a light and then fasing the light off, so the billboards appeared when the light was connected.

I know this must be a bit hard, but I'm in need of help.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-02-2012, 06:02 PM
Find


Messages In This Thread
Lighting a stove and billboard - by The chaser - 10-02-2012, 06:02 PM
RE: Lighting a stove and billboard - by Acies - 10-02-2012, 06:29 PM
RE: Lighting a stove and billboard - by Robby - 10-02-2012, 06:35 PM
RE: Lighting a stove and billboard - by Acies - 10-02-2012, 06:41 PM
RE: Lighting a stove and billboard - by Wapez - 10-02-2012, 06:42 PM



Users browsing this thread: 1 Guest(s)