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 / xrMod mlightfollowplr NOT WORKING! D:

Author
Message
Brunopark09
14
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 18th Sep 2010 23:14
Yesterday i made this script:



But in test game, when i hit the 38 key ( L ) the light turns on and don't follow the player and i can't turn it off.

What i'm doing wrong?

pd: i'm using fenix mod

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
knxrb
FPSC Tool Maker
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: United Kingdom
Posted: 19th Sep 2010 14:43 Edited at: 19th Sep 2010 14:45
Try this:


You need to use the 'mlightid' command before any other 'mlight' command so the exe knows which light you want to edit.

The 'mlightfollowplr' also needs to be called whenever you want the light to be at the same position as the player, each time it's called the light is moved to the player position.
Your script was moving the light when the key was pressed and then not after that.

knxrb
Brunopark09
14
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 19th Sep 2010 21:50
Thanks, it works but i can't turn the light off

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 22nd Sep 2010 19:47
You can't turn it off because on state=4 line when you press L key it goes to state 2 , while if you press the SAME key on that state it the light is on .

Try this :


Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Brunopark09
14
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 2nd Oct 2010 08:43
Still don't working

SCI FI MEDIA IS NEVER ENOUGH!
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 2nd Oct 2010 21:49
Why are you using globalvar=1 on your script ? what does it have to do with it ?

Remove globalvar=1 action and varequal=1 condition and test it .

Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Brunopark09
14
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 3rd Oct 2010 02:36
I'm using globalvar because i want the player have to take an item to use this script, so if the player take the item, the global variable turns to 1, and if the variable is equal to 1, and the L key is pressed , the light turns on.

the variable is not a condition to turn the light off, just the key pressed

i don't know why this happen, maybe a fenix mod bug? because i donwloaded a demo level of the horror mod flashlight in the official thread and the light follow the palyer and can be turned off

SCI FI MEDIA IS NEVER ENOUGH!

Login to post a reply

Server time is: 2024-11-24 19:46:31
Your offset time is: 2024-11-24 19:46:31