aook002
Member-
Content Count
147 -
Joined
-
Last visited
-
Medals
Everything posted by aook002
-
Checking to see if a script is running...
aook002 replied to aook002's topic in OFP : MISSION EDITING & SCRIPTING
Ok my scripts are like this now.... but still i get an error with:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? (running==true) : goto "stop" "takeoff.sqs" <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">running=true titleText ["", "white out"] ~2 deletevehicle fakeS1 deletevehicle fakeS2 deletevehicle fakeS3 S1 moveincargo plane S2 moveincargo plane S3 moveincargo plane plane setpos [getpos plane select 0, getpos plane select 1, 80] v0=125; dir=getDir(plane);vBase = [sin(dir),cos(dir), 0]; plane setVelocity [(vBase select 0)*v0,(vBase select 1) * v0, 0] ~7.5 titleText ["", "white in"] exit "stoppedpilot.sqs" <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">goto "halt" #halt ? (running==true) : goto "stop" v0=0; dir=getDir(plane);vBase = [sin(dir),cos(dir), 0]; plane setVelocity [(vBase select 0)*v0,(vBase select 1) * v0, 0] goto "halt" #stop exit Aook  -
Checking to see if a script is running...
aook002 replied to aook002's topic in OFP : MISSION EDITING & SCRIPTING
So benu in the first script would i change running=true to... running==true Aook Ps: England have just scored !!! And again !!!(England 3 - 0 Switzerland) Â Â Â -
Checking to see if a script is running...
aook002 replied to aook002's topic in OFP : MISSION EDITING & SCRIPTING
Well the running 'variable' doesnt work...does anyone know of a variable that would work. Also is my scripting correct? Thanks Aook -
Checking to see if a script is running...
aook002 replied to aook002's topic in OFP : MISSION EDITING & SCRIPTING
So something like this then...maybe... takeoff.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">running=true titleText ["", "white out"] ~2 plane setpos [getpos plane select 0, getpos plane select 1, 80] v0=125; dir=getDir(plane);vBase = [sin(dir),cos(dir), 0]; plane setVelocity [(vBase select 0)*v0,(vBase select 1) * v0, 0] ~7.5 titleText ["", "white in"] exit stoppedpilot.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">goto "halt" #halt ? (running=true) : goto "halt" v0=0; dir=getDir(plane);vBase = [sin(dir),cos(dir), 0]; plane setVelocity [(vBase select 0)*v0,(vBase select 1) * v0, 0] goto "halt" #stop exit Aook -
Well here's the script i made to do it..basic but still works Script Aook
-
Hi All, I'm just making a mission at the moment and was hoping to use the Airport in the north of nogova, but after searching found out it didn't work. So, i was wondering that if i was able to do something like this: As soon as the pilot gets in the plane, it starts to move forward before going off-road  . But at this point could the screen fade to black for a few seconds and in this time while the screen is black, the plane is set-pos to in the air using a game logic, with the plane also nearer the objective (so the plane doesn't crash in the gorges to the north of nogova - but i guess that could be done by moving the gamelogic). Also the plane may have passengers as well as the pilot. If you need anymore description just say... Thanks Aook Â
-
Doesn't matter i did a bit of fiddling around and got it working. Cheers Anyway Aook
-
Well that wasn't the reply I was really looking for otherwise I would have done that before posting  Ill add a bit to my question.... Aook Â
-
These weapons are awesome I've never really bothered to download any new weapons until now - these are soooooo high in detail Anyway just one thing.....in the next release (if there will be one) could you put a crosshair on the Barret Light (aka M82A1) ? Cheers and thanks for the great weapons. Aook
-
Automatic windows update - Should be on your start menu or control panel or search google for the website. Aook
-
Ah well I had Windows 2000 and didnt really think about it Ahh what are you gonna do  Aook
-
Preventing respawn.
aook002 replied to Baron Hurlothrumbo IIX's topic in OFP : MISSION EDITING & SCRIPTING
A good respawn to use is Doolittle's revive respawn. I think that you are able to change the number of times you can respawn just before you play the missions in the multiplayer screen. All the instructions are in the readme.... i think. If you have any queries just ask at the forum or email me at aooksofp@btinternet.com Revive Respawn: Download Aook Edit: If the link doesn't work...drag the download link to the address bar of your browser. (Freewebs is crap..goddamnit  ) Ps: Sorry admins if this post seems to be popping up all over the place.....i answered 3 questions with it - all about respawning  -
A damned respawning script with instructions
aook002 replied to deathsai's topic in OFP : MISSION EDITING & SCRIPTING
A good respawn to use is Doolittle's revive respawn. All the instructions are in the readme.... i think. If you have any queries just ask at the forum or email me at aooksofp@btinternet.com Revive Respawn: Download Aook Edit: If the link doesn't work...drag the download link to the address bar of your browser. (Freewebs is crap..goddamnit  ) Ps: Sorry admins if this post seems to be popping up all over the place.....i answered 3 questions with it - all about respawning -
A good respawn to use is Doolittle's revive respawn. All the instructions are in the readme.... i think. If you have any queries just ask at the forum or email me at aooksofp@btinternet.com Revive Respawn: Download Aook Edit: If the link doesn't work...drag the download link to the address bar of your browser. (Freewebs is crap..goddamnit  ) Ps: Sorry admins if this post seems to be popping up all over the place.....i answered 3 questions with it - all about respawning
-
Anyway if all that is unclear to make a description.ext file: 1) Open up notepad (or equivalent) 2)Put whatever code or stuff you want in it 3)Click save as 4)Now select your location 5)For the file name you have to you " marks. Make sure the name is clear first then type the filename. For example: "description.ext" 6) Click save and there's your description.ext in your desired location Aook
-
Hi All, You probably haven't seen me on this part of the board before but recently I have created a website housing the missions I have made over time. You're welcome to download any of them   and if you do, do them, would you be able to post some feedback on here (this topic) as with freewebs you are unable to get site statistics without paying. The only problem is that I have yet to find out which addons are needed for the missions, although that most of the addons needed for my missions are posted on the website. In my opinion, I think that the Nogovan Airport Situation and the BlackHawk Down missions are the best ones I have created so far...but do feel free to download any of the others aswell  Thanks Aook  My Website : Aook's Operation Flashpoint
-
Thanks for the reply mganik Yeah it's a shame about the download rate, but I can really do anything about it, that is unless you contacted me via the website and I could send you the file be email. That could be better. Or someone with a better website (server) could host them for me Yea most the missions I create are multiplayer, it because I play on a LAN, but then again you can still play them as single player by just starting a LAN game and playing just with yourself and AI if wanted. I did this so I could supposed "kill two birds with one stone" Â Also I did say: But I will try and sort it out as soon as possible. Thanks for trying some of the missions anyway, Aook
-
Thanks hardrock, i finally got it working with a few tweaks, and with your help  All i changed was the addition of the " for the "rotor.sqs". But when i had got this working i found that my helicopter execed the "rotor.sqs" with being full health. So I guessed that I would have to change the... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? ((damage _heli)>0.5) : goto "check" To... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? ((damage _heli)<0.5) : goto "check" I think this is because the damage works the wrong way round in flashpoint like: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">heli setdamage 0.1 means it has 90% health...wierd  Anyway thanks all Aook Â
-
Hi all, I'm wondering am I able to make a script execute using an IF clause ? In a kind of an eventhandler way ? What im trying to do is have a script execute when a certain condition is met. And this condition is when a helicopter reaches half health. Somrthing like this... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">If heli = damage 0.5 exec "rotor.sqs" I know that's completely wrong but I hope it help you to get the drift. Thanks Aook Â
-
Thanks for the reply hardrock, but i still have a slight problem...  My helicopter is called crash In the init line of the heli is: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[this] exec "checkhealth.sqs"; this exec "damage.sqs" checkhealth.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_heli = _this select 0 #check ~1 ? ((damage _heli)>0.5) : goto "check" [_heli,true,2] exec "rotor.sqs damage.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">crash setdamage 0.1 ~1.5 crash setdamage 0.2 ~1.5 crash setdamage 0.3 ~1.5 crash setdamage 0.4 ~1.5 crash setdamage 0.5 ~1.5 crash setdamage 0.6 hint "Helicopter should now be crashing..." exit rotor.sqs - By MrZig <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;;----------------------------------------- ;;[heli,true,2] exec "rotor.sqs" _heli = _this select 0 _ox = 0 _oy = -9.5 _h = 0 _size = 2 ;;----------------------------------------- _speedX = velocity _heli select 0 _speedY = velocity _heli select 1 _driver = driver _heli _heli setfuel 0 _random = true _maxkills = 4 ?count _this == 2: _random = _this select 1; _maxkills = 4 ?count _this == 3: _random = _this select 1; _maxkills = _this select 2 _driver sidechat "Mayday! Mayday! This is Super Six One, our Blackhawk is going down! I repeat, our Blackhawk is going down! Requesting backup! Mayday! Mayday!" #loop _param=(random 3)*_size ?(_param>1.5):_param=random 2.5 ?(_param<0.95):_param=0.95+_param ?(_size<1):_param=random 0.75 ? (speed _heli)>15:_param=_param/2 _heli setvelocity [_speedX,_speedY,-14] _height = getpos _heli select 2 _dir = getdir _heli _heli setdir (_dir) +5.5 ~0.001 ?getpos _heli select 2 <= 1 : goto "loop2" drop ["cl_basic", "", "Billboard", 1, 3*_param, [_ox+ random (0.25*_size) - random (0.25*_size) ,_oy+ random (0.25*_size) - random (0.25*_size) ,_h], [random 0.3-random 0.3, random 0.3-random 0.3,random 0.3], 1, 0.004, 0.004, 0.1, [random (1.25*_size), random (1.5*_size),random ( 2*_size),random (2.5*_size)], [[0.1,0.05,0,0.4],[0.05,0.025,0,0.25],[0,0,0,0.1],[0,0,0,0]], [0,1,0], 0.5, 0.05, "", "", _heli] goto "loop" #loop2 _dir = getdir _heli _heli setvelocity [0,0,-10] _heli setdir (_dir) +5.5 #explo _c = 50 _size = [2, 5] _size1 = [2, 15] _lifetime = 3 _step = 360 / _c _i = 0 #11 _Explosion = GetPos _heli _cx = _Explosion select 0 _cy = _Explosion select 1 _cz = _Explosion select 2 _vel = [sin(_i * _step)*(random 15-random 15), cos(_i * _step)*(random 15-random 15), random 20] _vel1 = [sin(_i * _step)*7.5, cos(_i * _step)*7.5,random 5-random 15] ?_cz<1:drop ["cl_basic", "", "Billboard", _lifetime, _lifetime, [_cx, _cy, 0.5], _vel, 0, 1, 0.157, 0.001, [5,7.5,10,15], [[0.05,0.025,0,0.3],[0.05,0.025,0,0.3],[0,0,0,0.3],[0,0,0,0.1]],  [0], 0.1, 0.2, "", "", ""];_debri="FxExploGround2" camcreate [(getpos _heli select 0)+random 1-random 1,(getpos _heli select 1)+random 1-random 1,_cz];_debri setvelocity [random 25-random 25, random 25-random 25, random 50];_debriA="FxExploGround1" camcreate [(getpos _heli select 0)+random 1-random 1,(getpos _heli select 1)+random 1-random 1,_cz];_debriA setvelocity [random 25-random 25, random 25-random 25, random 25] ?_cz>=1:drop ["cl_basic", "", "Billboard", _lifetime, _lifetime, [0,0,0], _vel1, 0, 0.2, 0.157, 0.001, [5,7.5,10,15], [[0.05,0.025,0,0.3],[0.05,0.025,0,0.3],[0,0,0,0.3],[0,0,0,0.1]], [0], 0.1, 0.2, "", "", _heli];_debri="FxExploGround2" camcreate [(getpos _heli select 0)+random 1-random 1,(getpos _heli select 1)+random 1-random 1,_cz];_debri setvelocity [random 25-random 25, random 25-random 25, random 50];_debriA="FxExploGround1" camcreate [(getpos _heli select 0)+random 1-random 1,(getpos _heli select 1)+random 1-random 1,_cz];_debriA setvelocity [random 25-random 25, random 25-random 25, random 25] _i = _i + 1 ?(_i < _c) : goto "11" #crew ?!_random: goto "run" _crew = crew _heli _c = count _crew _i = 0 _kills = 0 #crew2 _unit = _crew select _i ?random 1 > 0.8 && _unit != player: _unit setdammage  (random 1) ?random 1 > 0.8 && _unit != player && _kills < _maxkills: _unit setdammage 1; _kills = _kills + 1 _i = _i + 1 ?_i < _c: goto "crew2" #run _heli setfuel 0 ?!Alive _heli : exit {_X setbehaviour "aware"} foreach _crew _heli setdammage .90 _driver sidechat "GET OUTTA THERE! IT'S GONNA BLOW!";; ~15 _heli setdamage 1 ~3 _driver sidechat "Is everyone OK!?" exit The error I get is: [_heli,true,2] exec "rotor.sqs |#| Invalid number in expression Any help? Thanks Aook
-
Erm....i cant seem to get it to work  Would it be easier if I told you the heli was called >> crash. And that i'm using MrZigs tail rotor script, which needs to be execed something like this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[crash,true,2] exec "rotor.sqs" PS: I'm trying to use the Way 1: Using "checkhealth.sqs" Thanks Aook Â
-
Cheers hardrock, ill try as soon as I can... But i'm off to bed now   Gcse's tomorrow.....eeeeeeek. Thanks Aook
-
Yey, cool thanks Aook
-
Mmmmmmmm F18's....... ::dribbles on keyboard and suffers electric shock:: Â Great Work! Aook Â
-
Doesnt matter..i found the file It seems it all works now....ill tell u if it doesnt. Thanks All Aook