Home   Help Search Login Register  

Author Topic: As you exit.  (Read 884 times)

0 Members and 1 Guest are viewing this topic.

Trajectory7

  • Guest
As you exit.
« on: 04 Nov 2002, 00:59:24 »
I'm looking for a way to be able to switch a streetlamp back to "auto" when the player exits my mission.

Or in the wider sense trigger activated when player exits.

( i have the problem that during the mission i set the lamp to off and if i don't change it back it starts off next time i play ( NB only tried it in the editor))

think about it.

david-p

  • Guest
Re:As you exit.
« Reply #1 on: 04 Nov 2002, 15:47:53 »
yup thats the game's laziness, sometimes it wont bother to reload the original map, so things can be changed until you switch to another island and back again.
is this SP or MP?
how did you turn the light off?
objectID switchLight "Off"?
if SP, simply put
objectID switchLight "ON" in on activation, of a trigger, condition "!alive player" w/out quotes.
if you, like me, use
nearestobject ["logic1","streetlamp"] switchlight "Off"
then "deleteVehicle logic1", or ..switchlight "On" ; and so on for all your logics.
Hope that helps. write back if not.
dave

edit: i just noticed, that will only work if the player stops playing after dying. well thats how to put the lights back on, fraid i cant think of anything else now.
« Last Edit: 04 Nov 2002, 15:51:19 by david-p »

Trajectory7

  • Guest
Re:As you exit.
« Reply #2 on: 04 Nov 2002, 18:46:03 »
Thanks, thats solves half my problem and it's given me something to think about and i may be able to adapt.

I suppose it's abit awkard it's not like running a script "in mission" rather running a script "in game"

But i'm still open to ideas! anyone?