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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: Changing Lantern Spotlight color mid game

Yes, the entity name must be the lantern entity that is held, not the item you pick up. Is it called PlayerHands though? I thought that was the entity name of the hand entity, which doesn't hold the light.

The entity is within the /models folder. The default entity file is named hand_lantern.ent and the MFP one is lantern_mandus.ent. To me, that would make sense to put mandus_lantern_SpotLight_2 (SpotLight_1 is ambient, whereas SpotLight_2 is the beam).

[Image: 6XN65u4.png]

Try to see if you can use this method for changing light properties to a simple entity, like a torch. It should work. The hand objects might be a bit different though. I've never done it myself.

Edit: Hang on a sec. You named your script to use "lantern_mandus..." not "mandus_lantern...". That might be the issue.

(This post was last modified: 03-26-2016, 06:03 PM by Mudbill.)
03-26-2016, 06:00 PM
Find


Messages In This Thread
RE: Changing Lantern Spotlight color mid game - by Mudbill - 03-26-2016, 06:00 PM



Users browsing this thread: 2 Guest(s)