Page 1 of 1

The Scripted Flashlight

Posted: Tue Aug 30, 2005 12:43 am
by AndyCR
I decided to make a scripted flashlight... I don't know if it will work any better than the current RF flashlight, I don't even know if it will be of any use at all... Included is an example level, and the pawn script... Place the script in the scripts folder, the level in the media\levels folder, and add this to your pawn.ini:

Code: Select all

[Flashlight]
actorname = Xanibot3.act
actorrotation = 0 180 0
actorscale = 1.0
fillcolor = 255 255 255
ambientcolor = 255 255 255
subjecttogravity = false
boundingboxanimation = idle
now, just open the level, compile, and enjoy. Note that it's configured to use the xanibot model that comes with rf072a; youll have to adjust some things like actor file and bone attachment names to get it to work with a different actor. This flashlight is always on, does not care about attrbutes, etc.... feel free to modify it and use it in your game.