Poll

what do you think?

that'd be good
22 (71%)
eh, not liking it
3 (9.7%)
i like the normal flash light
6 (19.4%)

Total Members Voted: 6

Author Topic: a flashlight item?  (Read 1571 times)

maybe make the flashlight unable to be accessed through the L key, maybe pick up a flashlight model and you can aim and click it on and click it off to make it harder to navigate in zombie games or something.

Hellz yeh. I was just about to request this. I want a flashlight, not a god damn lantern that Blockland calls a "flashlight".

Directional light - I think - isnt possible in Torque.

Directional light - I think - isnt possible in Torque.
What about those horizontal spotlight lights?

I see what you are saying! A flashlight on a weapon! Okay. I would ask the Add-on makers to do some thing like that!

I see what you are saying! A flashlight on a weapon! Okay. I would ask the Add-on makers to do some thing like that!
That is why its in Suggestions & Requests.

Correct me if I'm wrong, but can't you just place a light inside of a flashlight model, but leave a hole where the light should come out, so the light would only come out of the hole?

mmiters and lights are no collision, so no it wouldnt worx

Get a script to mount and Dismount an fxLight object to your flashlight (or even hand for that matter) when needed via stateScript and use something like this as the fxLightData:

Code: [Select]
datablock fxLightData(FlashlightLight)
{
...
FlareOn = false;
...
AnimColor = false;
AnimBrightness = false;
AnimOffsets = true; //<<
AnimRotation = false;
...
StartOffset = "0 10 0"; //Not sure which axis you face, I think it's the Y one so I gave the light a distance of 10 along Y axis
EndOffset = "0 0 0";
...
OffsetKeys = "AAA"; //A is the StartOffset point, Z is the EndOffset point. Simply making it "A" also works I imagine.
...
OffsetTime = 5.0; //No difference what goes here, nothing's moving.
...
LerpOffset = true;//Doesn't make a difference here either, nothing's moving.
};


not sure exactly what all that crap mean except for that its scripting, but it somehow seems feasible.

honestly im no scripter or anything like that i was just thinking of it when i was playing a zombie game but yes it does seem feasible and it would be a great add and yet (even though i came up with the idea [to my knowledge]) it may be a difficult tool as well

What about those horizontal spotlight lights?

they're just a light a distance away from the brick that moves, I think.

I wish I could understand any of teh script there. Are there tutorials or somethin?

they're just a light a distance away from the brick that moves, I think.

They're just fxLightObjects that have Offset Animations. In other words, it's a Light that had a few variables changed here and there in its datablock in order to move about from it's initial origin point (the brick). Light animations are extremely limited though, you can't have lights moving in circles around the origin or anything.

I wish I could understand any of teh script there. Are there tutorials or somethin?

http://www-rohan.sdsu.edu/~stewart/GPGT/Appendix%20A%20-%20Quick%20References.pdf

This is a list of Console Objects and their respective dataBlocks (if they have any). Important to you is the fact that it gives a small summary of what each line in a given dataBlock does, so if you don't know what a certain line in a fxLightData dataBlock means for example, then you can look it up in that Appendix.

And there's official engine guide which covers all that stuff and more http://docs.garagegames.com/tge/official/

I will try screwing with the offsets and stuff and see what I come up with. I have a model too.