Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Fpsc v1.20 flashlight question

Author
Message
Mr tibbles
11
Years of Service
User Offline
Joined: 15th Jun 2013
Location: The Matrix
Posted: 16th Jul 2013 03:27
I'm using fps creator v1.20 public beta 18, and I downloaded a lantern model and set up a script that makes the v1.20 flashlight turn on when the lantern is picked up. The problem is, I don't know how to make the flashlight turn off when the lantern is put away. Can anybody help me out?

Here is the script I'm using:

:state=0:flashlightrange=200
:state=0:flashlightred=155
:state=0:flashlightgreen=140
:state=0:flashlightblue=55
:state=0:state=1
:state=1,plrcurrentweapon=ww2\hand_lantern:state=2
:state=2:flashlight=1,state=3
:state=3,plrcurrentweapon=0:flashlight=0

The last line is my attempt at making the flashlight turn off
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 17th Jul 2013 17:32
Hi Mr tibbles
First, beta 18 had a lot of problems. Read thru the last couple pages of the v1.20(pages 37 & 38). install beta 1.20.17a, then look for "19c_final_build.exe". They seem to be the most stable.
To answer your Q, "plrcurrentweapon=0" means "your current weapon from weapon slot 0 (zero). I have a feeling you intended it as not holding/having the lantern? The condition "plrcurrentweapon" one has to name the weapon (plrcurrentweapon=ww2\hand_lantern) or what slot your weapon is using (plrcurrentweapon=1 thru 0).
If your new to scripting try this,

Place it into a trigger zone, use the "F" key to turn on/off the light. Adjust the range & colors to your liking. Also grab a copy of the FPSC Official Community guide. It is a big help for scripting & also the latest script syntax list here..http://forum.thegamecreators.com/?m=forum_view&t=180924&b=23
best luck

Login to post a reply

Server time is: 2024-11-23 13:48:32
Your offset time is: 2024-11-23 13:48:32