OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lykurgos on 17 Jun 2004, 14:14:06

Title: Two questions. Need help!
Post by: Lykurgos on 17 Jun 2004, 14:14:06
1) How to make lights on in some house? In version 1.91 there was some light inside the house automatically when I played during the midnight. In the version 1.96 there was no more. ItÂ's quite annoying that I canÂ't see inside the house. I have already tried

(object 17732) switchlight "ON"

but it just makes very small light (that passes through the walls) and the game always crashes when I preview a second time. This building is the biggest in the Lipany (nogova) where (for example) Troska worked.

2) How to create or delete a waypoint of a certain unit DURING the game? I already know how to activate a waypoint, but how to create a new one? Or delete and then create a new one somewhere else?

Thanks for any help!  ;D
Title: Re:Two questions. Need help!
Post by: macguba on 17 Jun 2004, 15:11:19
Waypoints cannot be created or destroyed during the game.   You can move them around with the command setWPPos.

What you need is a switch trigger to control which waypoint is next.   Read the tute in the Ed Depot.

Don't know about the light problem I'm afraid.  Sounds odd though.