PDA

View Full Version : Lights & ladders...



der bastler
Oct 11 2002, 17:08
Ok, I don't have the permission to post a reply to this topic (http://www.flashpoint1985.com/cgi-bin/ikonboard301/ikonboard.cgi?act=ST;f=38;t=15173;hl=ladders), so I place my reply here...

I've created a memory lod with two vertices. I named this two points "start" and "end". In my config.cpp I included the following line:
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
ladders&#91;&#93; = {&#34;start&#34;,&#34;end&#34;};
[/QUOTE]<span id='postcolor'>

But: OFP crashes when I preview my object in the editor.
What&#39;s wrong?



There are also four points named-selected as "cerveny pozicni blik" (= red positional blinker). They represent positional lights on my building. ...Yes, you guess right, there&#39;s nothing blinking... Why?

kreepychaos
Oct 12 2002, 03:46
I got the same problem...game crashes because of the ladders[]={"start","end"}; in the config http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif

I&#39;m using resistance

der bastler
Oct 12 2002, 07:49
Oh, I switched back to Cold War Crisis, because I didn&#39;t want to be a DJ while testing my add-ons... http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/wink.gif

It doesn&#39;t seem to be a version problem...

Kegetys
Oct 12 2002, 08:18
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (der bastler @<hidden> Oct. 11 2002,20:08)</td></tr><tr><td id="QUOTE">ladders[] = {"start","end"};[/QUOTE]<span id='postcolor'>
Change that to
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
ladders&#91;&#93;={{&#34;start&#34;,&#34;end&#34;}};
[/QUOTE]<span id='postcolor'>
and it should work.

der bastler
Oct 12 2002, 08:37
Well, it works -until I try to climb my ladder. Then I have a green-screen with a crosshair in the upper left corner.

Same effect as on Kolgujev, south eastern base: You can climb on that bunker, but then ofp freezes in green.

What&#39;s my problem now? (huh, problems and problems...)

der bastler
Oct 12 2002, 13:43
I must correct myself: OFP doesn&#39;t freeze, you can continue to play -but the screen stays green, the crosshair is pinned in the upper left corner. It is possible to quit this "green" mission with "Esc"...

*?*

Suma
Oct 12 2002, 17:59
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (der bastler @<hidden> Oct. 12 2002,10:37)</td></tr><tr><td id="QUOTE">Well, it works -until I try to climb my ladder. Then I have a green-screen with a crosshair in the upper left corner.[/QUOTE]<span id='postcolor'>
Be sure not to have points "end" and "start" exactly above each other. The two points define not only ladder position, but also ladder orientation. Be sure to offset end point slighly to be "deeper in" the ladder.

der bastler
Oct 12 2002, 18:49
Right, they were exactly above each other&#33; Thanks&#33;
http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

btw: How do I define some red blinking positional lights?
*lookshopefully*

der bastler
Oct 14 2002, 12:33
Again: How do I define blinking red positional lights?

My work until now:
I&#39;ve defined a memory lod with four points named "cerveny pozicni blik" -like in the uh-60-demo.

The lights of the uh-60 must be activated from inside. But: My object is static and not enterable. How do I define the lights to be switched on initially?

*?*

Prospero
Oct 14 2002, 13:58
Are the UH60 lights on when no-one is occupying the aircraft? For example, even if you use a static, I believe you can still use hasdriver=1, and then use crew="logic" to get a gamelogic in there to occupy it by default.

Anyway, it&#39;s just an idea. There&#39;s probably a better (more proper) way.

Prospero