Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Desfar

Binding Dynamic light to Player

Question

I have been looking at several ways to try and bind a light to the player model to provide a limited FoV, 
Which has led to me to try and reverse engineer 2 methods, both of which have been mostly duds.

The method from Lasting Light shows an item that when held adds the light 'Torch' when the lamp is out.
I don't fully understand where the light is bound, and haven't been able to replicate that effect of the main mod.

Using the Candlefly from Hedon as a secondary source, I was able to see that the GLDEF has the frames of the animal bound to a light source, so would it be viable to just bind all the frames of the player to a torch effect?
GLDefs are something I haven't been able to crack yet, and would appreciate the help.
 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1

You could use A_AttachLight with the proper check (like: if the player has the right item, then "attach the light" to him).

This way you do not have to use any GLDEFS lump and you just need to call this once for the player to always have the light (I think).

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×