MadMike1024 wrote:PapaExpress has created a xenon beacon for the GP15. He and I hacked away at it until we actually have them flashing from a timer in the .lua file. The lights look great, but I'd like to include a point_light glow to enhance the appearance. Positioning the lightglow and the color are done, now I need to know if it is possible to activate it from the .lua animation. Can anyone help us out here?
Kali wrote:1/0 rather than true/false is the "official" way for calls afaik - I think you got a little lucky there :).
Kali wrote:Ok - true/false are reserved words ( that obviously actually mean true or false ); I would stick to using 0 and 1 personally - maybe call them On/Off instead - just to keep things clear but I'm not writing your code :).
The randomness is the length of a frame in the game engine - you can get the frame length if you want as the parameter passed to Update(). Most RSC scripts seem to call it "time", but as that is another reserved word I've always used Interval ( in my variable naming scheme that's p_nInterval ) which is the length of time since the last frame in seconds. As you might expect there, it's a small fraction of a second.
Kali wrote:Check the RPM control.
Return to Rolling-Stock Design
Users browsing this forum: No registered users and 2 guests