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 / Rewrite flashlight code, help

Author
Message
s t a l k e r
16
Years of Service
User Offline
Joined: 10th Jun 2008
Location:
Posted: 25th Apr 2013 08:57
Hello,
I have been a member here for some years now but just recently I have started to make a serious game! It is going to be a ww2 horror game. Anyway I am using mentored1's flaslight but I could use some help to rewrite the scipt abit since I am not a good programmer (took the design class instead ). What I am looking for is a flashlight wich batteries are draining very fast. Hope someone can help me with this, thanks!

I guess this is the piece that need a tweak!
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 2nd May 2013 18:12
Hey there stalker,

A few things; you didn't define the huds at the begining of the script.
Should be something like this


Your going to need to do that for each of the huds you are going to use.

You should also use the action/condition etimer,etimergreater. That way you won't interefere with other timers in the game.

Now as far as getting a script to work the way you want. Scrap the Vaaribles and use timers. I have trouble understanding variables, timers are jst easier IMO. although they wont always work so I should take the skirt off and figure out variables.

So without my system infront of me to test, I wrote this, its just the begining to get you started.


Hope this helps
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 5th May 2013 01:16
Quote: "A few things; you didn't define the huds at the begining of the script.
Should be something like this"


He's only showing a small excerpt from mentored1's script, which does define the necessary hud.

@stalker, my guess is that all you need to do is decrease the number I've highlighted, to drain the battery quicker.

Quote: ":state=6,timergreater=30000,vargreater=0:decvar=1,timerstart"


Other than that, Troutflies is correct, you'll need to go through mentored1's script and change all the timers to etimers...

Login to post a reply

Server time is: 2024-11-23 13:58:49
Your offset time is: 2024-11-23 13:58:49