PDA

View Full Version : Lights off



DestroyerX
Feb 22 2002, 14:53
Hey,

Very simple: I want a unit to turn the lights off of a car. I tried to name the car 'truck 1' and then in the activation field of a waypoint of it: Truck1 action ["LIGHTOFF"] But it doesnt work! It has to work, right? Also, the "LIGHTON" command doesnt work either.

Next thing I tried is to name the unit who drives, like 'man1' and then for him make a "Get In" WP and then a "Move" WP and then in the activation field that command. But it doesnt work.


Very Confusing.......
Thanks for any help.

Pellejones
Feb 22 2002, 15:45
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Next thing I tried is to name the unit who drives, like &#39;man1&#39; and then for him make a "Get In" WP and then a "Move" WP and then in the activation field that command. But it doesnt work.[/QUOTE]<span id='postcolor'>

You need to set the man as a driver. Add this to his initialization field:
man1 AssignAsDriver Truck1;

Then add the GET IN waypoint. That should work.

DestroyerX
Feb 22 2002, 16:30
Didn&#39;t work http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif

InqWiper
Feb 22 2002, 18:31
I dont think every action U can perform in the game can be made by an AI like that.
I tried action["M16onback"] and action["LightFire"], it didnt work, something that does work is action["Strokegun"].
Maybe there is some other way to make it turn off the lights.

DestroyerX
Feb 22 2002, 18:38
I was already affraid of that idea..... http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif Pretty funny though, I tried "Strokegun" also http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif

ConanOfOz
Feb 24 2002, 00:47
I&#39;ve had this problem also, and the only mehtod I found that worked was to set the driver&#39;s mode to "Safe".

Furthermore, you cannot seem to do this from his initialisation field. I had to put the command in my init.sqs file AND add a delay of about 2 seconds. This last I run into all the time...If the init.sqs fires off too quickly it often fails to do what it&#39;s supposed to do.

Hope this helps.

WhoCares
Apr 30 2002, 12:32
I just have this problem (lightoff) as well with the M2.
About the 2sec delay I have seen something that might explain this:
I put a M2 in a small shed and my player right ahead of it. When I start now the preview I see how the gunner drops at his position about two secs after the start. Maybe that&#39;s the reason why this action ["lightoff"] does not work in the init field.

Would it maybe work to place an empty M2 and another Soldier MyM2Gunner, MyM2Gunner getin MyM2 and in the init field of MyM2Gunner this action ["lightoff","MyM2"]?

ZizleyBEar
Apr 30 2002, 13:23
if your mission is at night you can make the driver "awear" or "Danger" i dont remember what its called...

what im tying to say is that if you make the guy to think its very dangerus he will turn the lights off i think

i hope this helps&#33;

Tales_From_Topographic_Oceans
Apr 30 2002, 13:47
DestroyerX: are you from Raleigh? I am in Clayton. It was nice to see the Canes whip New Jersey.

I am trying to figure how to turn the street lights off in a town. When I set the time to dark, the street lights kick on. I want them off. Anyone know how?

WhoCares
Apr 30 2002, 14:12
For the street lights it&#39;s the inflame command I read somewhere. (but I never tested it)

About the behaviour, it&#39;s funny to see some advice to use Safe, you now Aware or Danger and I have also seen Stealth. I&#39;ve not yet tried this for the &#39;driver&#39; but only for the M2 itself. I&#39;ll give it a try maybe this evening.

Tales_From_Topographic_Oceans
Apr 30 2002, 14:19
Another lighting question,

how do I make a camp fire on when the mission starts? I assume in the Unit&#39;s field somewhere, I put a command. I have the 300+page editing manual plus some other 100+page command reference. All I need is a tip, and I will look it up.

Bart.Jan
Apr 30 2002, 16:31
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @<hidden> April 30 2002,16:19)</td></tr><tr><td id="QUOTE">Another lighting question,

how do I make a camp fire on when the mission starts? I assume in the Unit&#39;s field somewhere, I put a command. I have the 300+page editing manual plus some other 100+page command reference. All I need is a tip, and I will look it up.[/QUOTE]<span id='postcolor'>
In init field of fireplace :
this inflame true

DestroyerX
May 1 2002, 06:33
Hmm, didn&#39;t thought that there would be more posts in this old topic. http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">DestroyerX: are you from Raleigh? I am in Clayton. It was nice to see the Canes whip New Jersey.

I am trying to figure how to turn the street lights off in a town. When I set the time to dark, the street lights kick on. I want them off. Anyone know how?

[/QUOTE]<span id='postcolor'>

HAHA, no I&#39;m from the Netherlands but I like Hockey very much and Carolina is my favourite team. (Actually in NHL 2002, but then I started to follow them in real-life)

So now Friday against Montreal. Looking forward to the second round. (And watch the highlights  http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif )

ZizleyBEar
May 1 2002, 08:25
Im still think that it is the "stelth" mode (or whatever the most dangeres mode is) you should use if you want the truck driver to turn off the light at night

Btw, One thing im 100% sure of is that Montreal
will win over Carolina http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/tounge.gif

DestroyerX
May 1 2002, 08:57
Ah, we&#39;ll see... http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

DestroyerX
May 1 2002, 09:02
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">if your mission is at night you can make the driver "awear" or "Danger" i dont remember what its called...

what im tying to say is that if you make the guy to think its very dangerus he will turn the lights off i think
[/QUOTE]<span id='postcolor'>
Yeah, about that: When I set the Behaviour to "Danger", then the lights go off. But then the driver is driving very weird. Left,Right,Left,Right etc. Not really on the roads like in &#39;Safe&#39;.

WhoCares
May 1 2002, 11:46
Well, I&#39;ve not yet found a solution. Stealth works fine for trucks, but not for the M2 maschine gun http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif

Tales_From_Topographic_Oceans
May 1 2002, 12:50
Bart.Jan

I swear....I used the inflame command on a fire but could not get it lit. I fiddled with this for 1 hour.

Then I found out that the fire had to be EMPTY--OBJECT--FIRE for it to work. Before, I had placed a CIVILIAN--OBJECT--FIRE and the inflame command would not work.

NEO [PZ]
May 1 2002, 19:31
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @<hidden> May 01 2002,14:50)</td></tr><tr><td id="QUOTE">Bart.Jan

I swear....I  used the inflame command on a fire but could not get it lit. I fiddled with this for 1 hour.

Then I found out that the fire had to be EMPTY--OBJECT--FIRE for it to work. Before, I had placed a CIVILIAN--OBJECT--FIRE and the inflame command would not work.[/QUOTE]<span id='postcolor'>
I&#39;ve seen stuff like this happen to lots of people, bad luck http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/tounge.gif