| Author | Sticky: Post Working Scripts Here |
| gesellschaft | Posted: Thursday, 25 July 11:56PM |
| Script Names:
lightoffondeath,lightfadeonattack What They Do: reset area lighting after bashed,simulate temporary dimming of light when hit in an attempt to bash. Notes: I'm new to this and cannot take credit for the scripting, I simply modified those provided by David Gaider in his tutorial section regarding animation. While trying out the script on a Torch Bracket in a cave.. I bashed the torch, and the area was still lit as if the torch remained.. adding lightoffondeath to OnDeath for the torch brackets properties remedied this. I tried an experiment to see if I could get the light to (flicker) when attacked.. instead I got a decent alternative.. OnPhysicalAttack the light goes through the script routine twice without the animation lines, this dims the global lighting which in effect dims the actual flame on the torch bracket.. giving the appearance that the torch produces less light when disturbed.. until the flame regains control.. adding a tiny amount more realism. On Death: lightoffondeath
|
|