OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tango Down on 11 Apr 2004, 12:55:21
-
i have been playing around with the editor for ages now and continue to make up little missions for my self. But i have still not found out how, for example to get a team of men to eject out of a helicopter and parachute down to the ground. Also how when starting a mission a fire is already lit and things like making my men sit down. i am asking about these things not by giving your men commands to sit, kight a fire or eject but in the scripting in the mission editor. hope someone understnads what i am trying to say. any info would be nice
Also, rahter than use another post i may aswell say it here. i remember not long ago getitng onto a web site which is making a British forces mod for flashpoint. includes british infantry, weapons, tanks etc. ust wandering if anyone knows what this mod is and what the web address it is. i managed to loose all knloedge of it ???
-
http://www.project-ukf.com/ (http://www.project-ukf.com/)
First release coming soon I believe
http://www.ofpec.com/editors/comref.php?letter=I#inflame (http://www.ofpec.com/editors/comref.php?letter=I#inflame)
-
;    Call with ...... [group1,helo1] exec "eject.sqs"
_grp = _this select 0
_vehicle = _this select 1
_paras = units _grp
_i = 0
_j = count _paras
_vehicle flyinheight 100
~10
#loop
(_paras select _i) action ["EJECT",_vehicle]
unassignvehicle (_paras select _i)
_i=_i+1
~1
?_j>_i:goto "loop"
_vehicle flyinheight 50
exit
If I remember right this script works best when called from a trigger half way between two waypoints, helos might sometimes ignore waypoints if above 100 metres.
-
http://www.ofpec.com/includes/download2.php?id=365 (http://www.ofpec.com/includes/download2.php?id=365)
Try Macguba's Guide to Mission Editing for Beginners
-
Hey
have you tried the action command yet?
In the activation field of a waypoint type:
unit action ["SitDown"];
For a fire to be lit when you begin the mission, in the init field fo the fire type:
this inflame true
Good luck,
Hauk
-
ok thx i have worked out how to light fires, but the ejecting of men, making them plant mines satchel bombs and detonating etc are still hazzy to me, a step by step tutorial would be most apprecitiated
-
Ejecting a Group from a Helicopter by LustyPooh
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_4 (http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_4)
-
Download Chris's OFP Script Editor(search the forums for it), put the code Drwyd posted in the script field, save as in your mission folder and then put [group1,helo1] exec "eject.sqs" in the On Activation field of a trigger/waypoint.
For all the other things your looking for, just go to the Editors Centre and search around.
-
thx for that but if u didnt now this u will now but what ever you do when u ejecvt from that helicpoter you always die, because you are not high enough ???
-
Hi Tango
Try the attached mission, unpack it and put in "C:\Program Files\Codemasters\OperationFlashpoint\Users\tangodown\missions" and let the script do the ejecting.
The helo will climb to 100 metres before the group eject and return to 50 metres to continue following waypoints.
-
thats great thx for that, its actualy a lot better than the other turorial mission as the team doesnt try and board the chopper after ejecting
thx a bunch
in regards to the addon, the brit addon looks amazing, does anyone now amny release dates?
-
that little example of how to make a group eject was realy useful, but for some reason the script will not work on other maps. i merged that mission into nagova and altered it a bit with BAS addons to make a bit better. but when it comes upt to the ejecting point the game stops, a message saying cannot find script.sqs comes up and the mission carries on without ejecting. Could you tell what i need to change so i can use that template on other maps? thx
-
The script needs to be in your mission folder along with the mission.sqm.
Planck
-
it is in my user/missions folder and what i am saying is drwyd created the script on the desert island, so in the editor i wish to merge that into other maps so i can play around with it a bit more. but when i merge it into another map it says the script cannot be found
-
Each mission you wish to use the script in, must have a copy of the script in the folder with the mission.sqm.
Planck
-
Merging the mission wont touch the script file, you will have to copy and paste it into the folder of the new mission manually.
-
thank you for that. after a long period of trila and error i have found out how to make groups of men eject nad how to have fires lit. thx to all