Login
OFPEC RSS
OFPEC The Editing Center
Not a member yet? Register for free!
  • Home
  • Intel Depot
  • Editors Depot
  • Missions Depot
  • Addons Depot
  • Forum
Home › OFPEC FAQ › How do you switch on/off lights?

How do you switch on/off lights?

The switchlight command is used to control the status of streetlights. The lightison command can be used to check if the light is on or not.

See this OFP demomission for an example of how to use this command. 

OFPEC Example

  • About OFPEC
  • Mission editing
    • Units
    • Vehicles
    • Weapons
    • Objects
      • How to light a fire
      • How to open/close doors
      • To find out the latitude (North/South) position of a unit
      • To find out the longitude (West/East) position of a unit
      • How to make a flock of seagulls?
      • How do you switch on/off lights?
      • How do you instantly move a unit to another position?
      • How do you instantly place a unit/object higher up?
    • Sound & Music
    • General Hints & Tips

Advertisement


Top of page

Sitemap

  • Home
  • Latest News
  • News Archive
  • Submit a Story
  • Subscribe to RSS
  • Editors Depot
  • COMREF
  • References
  • Tutorials
  • Tools
  • Scripts
  • Functions
  • Setpos Templates
  • Missions Depot
  • Single Player
  • Multiplayer
  • Campaigns
  • Addons Depot
  • Tutorials
  • Tools
  • Resources
  • Addons
  • Forum
  • OFPEC Tags
  • FAQ
  • OFPEC Tutorials
  • Face Library
OFPEC The Editing Center
© 2001 - 2026

Problems with the site? Email us

Disclaimer | Privacy Policy

uptight