Scripts / Auto Turn on Flashlight at Start?

Author
Message
chicellwest
11
Years of Service
User Offline
Joined: 6th Nov 2012
Location: The Moon™
Posted: 3rd Aug 2015 12:00
I know that currently the Flashlight is Hard-Coded into in Engine. (Please add some Options so we can change the Range, Lens and et.) However I was wondering if you can make the Flashlight turn on as soon as the game starts? I also wanted to know if you can play a Sound file every-time you press the Flashlight Key, Is it even Possible?

Chicellwest

PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 3rd Aug 2015 12:45
I don't believe there is a way even by scripting, as flashlight is not an entity we can control it's all hard-coded in. You can only toggle on or off with 'F' key unless anyone knows different.
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).
chicellwest
11
Years of Service
User Offline
Joined: 6th Nov 2012
Location: The Moon™
Posted: 3rd Aug 2015 12:51 Edited at: 3rd Aug 2015 12:52
Ohh that sucks, I do hope they add Flashlight Options in the near Future.
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 3rd Aug 2015 15:13
Feature option will be added in the voting order of the results after the core performance.
It is a majority vote, and that is the order of the new feature when they are started.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Aug 2015 16:49
the sound is possible but that's about it for now

if GetInKey() == "f" then
PlaySound(e,0)
end
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
chicellwest
11
Years of Service
User Offline
Joined: 6th Nov 2012
Location: The Moon™
Posted: 3rd Aug 2015 17:32 Edited at: 5th Aug 2015 18:09
Quote: "the sound is possible but that's about it for now

if GetInKey() == "f" then
PlaySound(e,0)
end"


Thank you all!

Edit: Sorted it out thanks, But I have an Issue when Walking and then Pressing (F) the Sound does not play as the Walking sound is already Playing. Is there anyway round that issue at all?

Edit: 2: I can't seem to figure out how to play the sound while walking, Does anyone know why that is?
PM

Login to post a reply

Server time is: 2024-05-08 04:31:48
Your offset time is: 2024-05-08 04:31:48