Newbie question about attaching lights

Hello everyone!



First post in this forum, so treat me gently :stuck_out_tongue:

I've been using jME for some time now but wouldn't exactly call myself an experienced programmer, but I'm learning a lot as I go along.

I am currently working on a small game similar to the Flag Rush Tutorial, just to learn some more about the engine.

So here is the question:

I want to attach a spotlight to a node (imagine headlights coming out of a car). What would be the best way to go about doing this? My project is set up similar to the Flag Rush Tutorial with a player-node class. I've been experimenting with the LightNode and LightState classes but haven't been able to get anything to show up in-game.

look at this tutorial:

http://www.jmonkeyengine.com/wiki/doku.php?id=starter:hello_animation

that should help