olseric
Member-
Content Count
20 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout olseric
-
Rank
Private First Class
-
Hey guys... Been looking for a JPG, PDF, whatever of SEB NAM Ia Drang map. Apparently, my computer doesn't like the SHIFT - Topography trick as everytime it would make the file, it would delete it 10 seconds later from my HDD. So...the question is, does anyone have that map in JPG, PDF, anything image format wise that I could have a copy of? Thanks!
-
"Teleport" everything not just the men...
olseric replied to aook002's topic in OFP : MISSION EDITING & SCRIPTING
Read Here. -
Haven't tested this yet as I did it while at my desk here at work, however, it should work: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;Header Information _days = 0 _month = missionStart select 2 _day = missionStart select 3 _hour = daytime _month = _month - 1 ;Determine Day of the Year #MonthLoop ?(_month == 0):goto "LoopEnd" _dayssofar = _days ;30 days has SEP, APR, JUN, & NOV :) ?(_month == 2):_days = _days + 28 ?(_month == 9) OR (_month == 4) OR (_month == 6) OR (_month == 11):_days = _days + 30 ?(_dayssofar == _days):_days = _days + 31 _month = _month - 1 goto "MonthLoop" #LoopEnd ;Day of the Year Calculation _dayofyear = _days + _day ;Calculate days from an equinox _equinox = 0 ?(_dayofyear < 80):_equinox = _dayofyear - 80 ?(_dayofyear > 80):_equinox = _dayofyear - 80 ?(_dayofyear > 172):_equinox = 265 - _dayofyear ?(_dayofyear > 265):_equinox = 265 - _dayofyear ?(_dayofyear > 356):_equinox = _dayofyear - 445 ;Calculate Sunrise/Sunset _sunrise = ((_equinox * -.013889) + 6) _sunset = ((_equinox * .013889) + 18) ;Change stuff below to suit...examples listed. if (_hour < _sunrise) OR (_hour > _sunset) then {hint "It's Dark!"} else {hint "It's Light!"} The actual dates of the solstaces and equinoxes may need to be adjusted to fit the game, but I tested it on paper and it seems to work well.
-
need realistic radio man script
olseric replied to BoweryBaker's topic in OFP : MISSION EDITING & SCRIPTING
Make a trigger big enough to fit the whole map. In the condition field, "this AND satcomguy hasWeapon "bas_satcom"" In the init field, "satcomguy addAction ["Use Satcom","satcom.sqs"] -
LOL! Â Okay, I'll try and work on that part of it then. -EDIT- From the research labs, I have determined: Equinox days: Approx sunrise 6AM, sunset 6PM there is 2:30 of additional sunlight during the summer solstace (1:15 each way) and 2:30 of less sunlight during the winter solstace (1:15 each way).
-
Looks great! The only problem is, you need to set it to check from June 22nd and December 22nd - the two solstaces as they are respectively, the longest and shortest days of the year. But, for rough and quick, great job!
-
You'd think there would be a simple command for this, wouldn't ya? Â I mean, there's gotta be something in the internal game coding that drives the streetlamps in AUTO mode. I suppose if someone was ambitious, you could prolly figure it out simply by "waiting" in game and determining sunrise and sunset on both the summer and winter solstace and then calculating the rate of time increase between the two. Â I would suspect that it's set so it's a steady incline/decline. I just hope daylight savings time isn't in play here. ;) If I have some time in the next couple days, maybe I'll try and write out a function for it. If I do, I'll make sure you get a copy, sniper.
-
Enough already!!! Â NearestObject issue...
olseric replied to PLRSniper's topic in OFP : MISSION EDITING & SCRIPTING
I had to open that up and tweak it a bit. LOL! They were WAYYY to bright. -
Anyone know of a simple way to find out if the sun is shining or not? Tried polling a streetlamp (i.e. on at night, off during day), however, that didn't work. And...setting it by the hour doesn't work because of the season difference (i.e. sun up earlier in the summer).
-
From OFPEC...
-
Depends upon what you're using as a firewall, sniper. I know several people that even with firewalls "off" and routers properly configured still can not host games. I suspect this problem is due to either: A. Router not properly handling traffic. B. Firewall not off. I lean more towards option B as most firewalls comercially installed never really do remove themselves.
-
It works. Thanks!
-
Okay, tried that, no avail. I should add this. The error that I'm getting is an "Object Expected, Sting Presented" one. Basically, what I'm doing to create the random object selector is taking a number and slapping it on the end of target using the format command...i.e. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_thistarget = format ["target%1",_number]; Apparently, this is causing it to be treated as a string. So, the question of the day is, is there some way to change the variable type? Or, is there a way to join two variables to achieve my overall goal here?
-
I need an expert opinion on this one. I'm trying to make targets randomly pop-up in a given time frame...in short, the problem that I'm having is the script won't acknowledge the dynamically generated object names. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">target1 setdammage 0.8 Will work just fine...but... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_targetname = target1 _targetname setdammage 0.8 Will not work at all. Suggestions? Â Ideas? Â I think the easy way would be to get the now string value variable converted back to an object, however, I can't seem to figure out how. Â Furthermore, I have already considered passing an array to it, however, I want to somehow "short form" this. Thanks for your help in advance.
-
Just a thanks guys...I did eventually get it to work. The nearestobject (myguy,"string") format didn't work for me. Â Couldn't get it to work correctly. Â But, as I am doing a towing script, I fixed the problem by using x,y,z format and specifing a spot 15m behind me. Â Works great now. Basically, what I created it for was the Nimitz carrier. Â I found that my deck got clutted because I couldn't put the planes away after landing. Â Now, I can tow them around. If anyone wants the script, just drop me a line: Â olseric@charter.net -Eric