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
Is it possible to use electric light in a regular custom history?
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: Is it possible to use electric light in a regular custom history?

Here's a tutorial about converting Penumbra models to Amnesia: http://www.frictionalgames.com/forum/thread-5126.html

Regarding your light bulb idea, here's a script that should help you:

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("uselightbulb""lightbulb_1""AreaUseLightBulb""OnLightbulbUse"true);
}

void OnLightbulbUse(string &in asItemstring &in asEntity)
{
    
SetEntityActive("lightbulb_lit"true);  // make sure it's not active in the level editor (same for the light)
    
SetLightVisible("PointLight_1"true);  
    
RemoveItem(asItem);



lightbulb_1 = the light bulb in the players inventory
AreaUseLightbulb = the area that the player uses lightbulb_1 on
lightbulb_lit = the light bulb that will show in the level
PointLight_1 = the pointlight that creates the light generated by lightbulb_lit

Alternatively, you can just attach a point light to the light bulb entity in the model editor.

In Ruins [WIP]
(This post was last modified: 01-15-2013, 06:18 AM by NaxEla.)
01-15-2013, 06:16 AM
Find


Messages In This Thread
RE: Is it possible to use electric light in a regular custom history? - by NaxEla - 01-15-2013, 06:16 AM



Users browsing this thread: 1 Guest(s)