The Scripted Flashlight

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

The Scripted Flashlight

Post by AndyCR » Tue Aug 30, 2005 12:43 am

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.
Attachments
flashexam.zip
(3.25 KiB) Downloaded 142 times

Post Reply