OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tango Down on 11 Apr 2004, 12:55:21

Title: Team ejecting, lighting fires, sitting down etc
Post 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   ???
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Drwyd on 11 Apr 2004, 13:53:46
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)

Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Drwyd on 11 Apr 2004, 13:58:50
Code: [Select]
;       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.
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Drwyd on 11 Apr 2004, 14:11:17
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

Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Hauk on 11 Apr 2004, 17:08:33
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
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Tango Down on 16 Apr 2004, 11:44:56
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
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Drwyd on 16 Apr 2004, 12:58:04
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)
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: JohnJoeJim on 16 Apr 2004, 14:02:25
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.
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Tango Down on 16 Apr 2004, 14:07:45
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 ???
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Drwyd on 16 Apr 2004, 15:01:35
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.
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Tango Down on 16 Apr 2004, 15:36:03
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?
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Tango Down on 17 Apr 2004, 19:26:45
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
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Planck on 17 Apr 2004, 21:33:36
The script needs to be in your mission folder along with the mission.sqm.


Planck
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Tango Down on 17 Apr 2004, 23:18:11
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
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Planck on 18 Apr 2004, 00:12:17
Each mission you wish to use the script in, must have a copy of the script in the folder with the mission.sqm.


Planck
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Drwyd on 18 Apr 2004, 00:14:03
Merging the mission wont touch the script file, you will have to copy and paste it into the folder of the new mission manually.
Title: Re:Team ejecting, lighting fires, sitting down etc
Post by: Tango Down on 18 Apr 2004, 12:33:37
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