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
Changing Lantern Spotlight color mid game
Reminiscity Offline
Member

Posts: 81
Threads: 16
Joined: Jan 2013
Reputation: 2
#9
RE: Changing Lantern Spotlight color mid game

Managed to solve this. This is what I had to do.

void OnStart()
{

SetLanternLitCallback("lanternColor");

}

void lanternColor(bool abLit)
{

AddTimer("lanternTimer", 0.3f, "changeLanternColor");

}

void changeLanternColor(string &in asTimer){

FadeLightTo("PlayerHands_SpotLight_1", 0.1, 0.35, 0.5, 0.7, -1, 0);
FadeLightTo("PlayerHands_SpotLight_2", 0.1, 0.35, 0.5, 0.7, -1, 0);
FadeLightTo("PlayerHands_PointLight_1", 0.1, 0.35, 0.5, 0.5, -1, 0);

}

My mod Amadeus
03-26-2016, 08:26 PM
Find


Messages In This Thread
RE: Changing Lantern Spotlight color mid game - by Reminiscity - 03-26-2016, 08:26 PM



Users browsing this thread: 1 Guest(s)