Jump to content

KissOfDeath

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Everything posted by KissOfDeath

  1. I'm trying to create lights in a vehicle that as the player selects actions will respond to give them feedback, by turning on or off. Â From all the posts I've read, Colonel Klink had/has a tutorial that demonstrates this technique, unfortunately his site is no longer available. Â Also there seem to be a few binarized PBOs out there that utilize the technique, and their lights are controlled using the animate command (e.g. vehicle1 animate ["Light1", 1]; vehicle1 animate ["Light1" 0]; ) Â So as far as I can guess there's got to be some way to animate the lights to the On/Off states. I am pretty new to OFP ( one month in ), and would really appreciate any help anyone can provide. Thank you.
  2. KissOfDeath

    Player Controlled Vehicle Lights?

    nm, I was able to locate Colonel Klink who was kind enough to give me a lesson on how to accomplish the task. In case anyone treads here looking for the solution, basically this is what you do: 1) Create the geometry for two versions of the light, one for On, and one for Off. 2) Center the two versions on a rotation axis, with one version buried in the model, and one sticking out. 3) Create two textures for the light, one for the On version and one for the Off version. 4) Apply the textures; one to the On version of the geometry, and one to the Off version of the geometry. 5) Set the Vertex Properties (Lighting section) to Shining for the On version of the geometry. 6) Create a Pin, centered between the two versions of the geometry. 7) Create a Rotation about the Pin for the two versions of the light geometry. 8) Declare a Rotation Animation, using the Pin as the axis, in the Animations section of the object, in the config.cpp. 9) Setup a control script that uses the animate command to switch between On and Off.
×