Page 1 of 1

Character lite

Posted: Sun Jan 01, 2006 2:05 pm
by Davy
I'm making a level where I want a dim light to hover over the player as to only illuminate the level within a certain distance of you (would look really cool in 3rd person). A flashlight would also be very cool for 1rst person. But I have no idea how I would go about doing so... Suggestions? Tutorials? Thanks.

Posted: Sun Jan 01, 2006 3:54 pm
by AndyCR
flashlight, check the perfect flashlight code in rf scripting. for what you said, simply make a dynamiclight, and set the EntityName to player and the BoneName to whatever bone of the player you want it to attach to (you can view the bones to see which one you want in viewer.exe).

Posted: Sun Jan 01, 2006 6:38 pm
by animatrix
Davy, I did a game a while back where your in an underground cavern system with no lights, but the player had a sonar pulse of blue light that shot out and bounced of objects illuminating the areas and semi transparent giant spiders, was a really good effect. the pulse was about a 20 ft glow as it went foward and lasted about 5 seconds or so. I used a weapon bullet and the rocket glow effect in the install folder of RF. :)
Image

Posted: Sun Jan 01, 2006 7:02 pm
by Guest
Thanks, it looks pretty good, except I think the bone need's to be above the player (I tried the top of the head and it was all flickery). But I can definitely work with that. Thanks.

Posted: Sun Jan 01, 2006 8:10 pm
by GD1
in playersetup.ini find the flashlight part and change 'spotlight = true' to 'spotlight = false'. This will do exactly what your looking for. The flashlight key (default 'F' i think) switches it on and off. Mess around with the other settings in there to get the exact look you want.