Jump to content
marcoclusius1

alley lights

Recommended Posts

hello guys,

i have the L.A.mod v3 beta now the point, i have 1 police car where i want to have the command alley light on ( traffic light green)

is there some script for this ( i know there is special lights, lights on/of, search light)

but i want specific for only alley lights, pls help me

Link to comment
Share on other sites

oO ? are you serious?

why don't you use the script you posted a link to in another topic (http://www.emergency...aseItem&id=1274) ???

works the same way, just replace these things:

const char DUMMY_HASINTERIORLIGHT[] = "DUMMYINTERIORLIGHT";

change to

const char DUMMY_HASALLEYLIGHT[] = "DUMMYALLEYLIGHT";

object InteriorLight : CommandScript

{

InteriorLight()

change to

object VCmdAlleyLight : CommandScript

{

VCmdAlleyLight()

Vehicle v(Caller);

if (v.HasCommand(DUMMY_HASINTERIORLIGHT))

{

v.EnableTrafficLight(TLT_NONE);

v.RemoveCommand(DUMMY_HASINTERIORLIGHT);

} else

{

v.EnableTrafficLight(TLT_RED);

v.AssignCommand(DUMMY_HASINTERIORLIGHT);

}

change to

Vehicle v(Caller);

if (v.HasCommand(DUMMY_HASALLEYLIGHT))

{

v.EnableTrafficLight(TLT_NONE);

v.RemoveCommand(DUMMY_HASALLEYLIGHT);

} else

{

v.EnableTrafficLight(TLT_GREEN);

v.AssignCommand(DUMMY_HASALLEYLIGHT);

}

object DUMMYINTERIORLIGHT : CommandScript

{

DUMMYINTERIORLIGHT()

change to

object DUMMYALLEYLIGHT : CommandScript

{

DUMMYALLEYLIGHT()

guess that should do!

you don't have to rename the dummy or the command name but if you are already using this script for another light with the original script i think you'll need to - as shown above.

greetz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...