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 / emitflash in v119 beta 4

Author
Message
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 22nd Dec 2011 18:03 Edited at: 22nd Dec 2011 23:41
is it possible to make a glowstick that you can pick up and carry around?

*EDIT* that looked like a nooby question sorry, I need to know if this allows for a dynamic light to be moved around.



that just flashes really fast and when I use it without the loop it does the same thing but a bit slower

I appear to have burst into flames...
Scene Commander
Support Manager
16
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 22nd Dec 2011 20:47 Edited at: 22nd Dec 2011 20:57
Hi anhusm3,

etimer is based on 1000's of a second, so your code is 25 of a thousandth. For every second of delay you want etimer should equal 1000.

For example 2 seconds would be etimergreater=2000

You might allows want to look at the command logicburst which creates a temporary always active entity. That should prevent your slowdown.

I've attached a script which flashes every 1.5 seconds (more or less )

I hope that helps.

SC

http://jimjamsgames.yolasite.com

Attachments

Login to view attachments
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 22nd Dec 2011 23:40
I do know what a millisecond is, the script I put up there SHOULD flash at a rate of 40/Fps which is about my framerate so it should not be noticable. Unfortunately it flashes visibly and does not create the dynamic light effect that I was trying to achieve.

I appear to have burst into flames...

Login to post a reply

Server time is: 2024-11-24 04:31:34
Your offset time is: 2024-11-24 04:31:34