(Orig. rep by Sui) :
This demonstrates how to detect if a building (fuelstation) has been destroyed.
The trigger will activate when the fuel station expodes
---Mission components
GameLogic
This Gamelogic variable defines the fuel station which is going to get blown up.
It is placed right next to the fuel station and has and init line of:
fstn = nearestobject [this,"fuelstation"]
This makes "fstn" the fuel station needing to be blown up.
The trigger has the condition line:
not (alive fstn)
It uses fstn, already defined by the gamelogic above.
It sets off a hint when the fuel station is destroyed.
You would put your objective commands/win commands in the OnAct line,
so they activate when the fuel station is destroyed.
-----------
To light up a streetlamp (in version 1.75) :
Just click the "show ID" button and find your streetlamp (you may need to zoom in quite close for the ID's to show up).
Take down it's number, and use a line like this:
(object 37317) switchlight "on"
To turn it on, "off" to turn it off and "auto" to set it to default (on during night, off during day).
PS. as far as I remember, both "nearest..." AND the object ID stuff will do in 1.85
Laterz