Home   Help Search Login Register  

Author Topic: Team ejecting, lighting fires, sitting down etc  (Read 1259 times)

0 Members and 2 Guests are viewing this topic.

Tango Down

  • Guest
Team ejecting, lighting fires, sitting down etc
« 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   ???
« Last Edit: 11 Apr 2004, 12:57:54 by Tango Down »

Drwyd

  • Guest
« Last Edit: 11 Apr 2004, 13:59:59 by Drwyd »

Drwyd

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #2 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.

Drwyd

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #3 on: 11 Apr 2004, 14:11:17 »
http://www.ofpec.com/includes/download2.php?id=365

Try Macguba's Guide to Mission Editing for Beginners


Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Team ejecting, lighting fires, sitting down etc
« Reply #4 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

Tango Down

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #5 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

Drwyd

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #6 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

JohnJoeJim

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #7 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.

Tango Down

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #8 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 ???

Drwyd

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #9 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.
« Last Edit: 16 Apr 2004, 15:02:21 by Drwyd »

Tango Down

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #10 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?
« Last Edit: 16 Apr 2004, 15:39:40 by Tango Down »

Tango Down

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #11 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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Team ejecting, lighting fires, sitting down etc
« Reply #12 on: 17 Apr 2004, 21:33:36 »
The script needs to be in your mission folder along with the mission.sqm.


Planck
I know a little about a lot, and a lot about a little.

Tango Down

  • Guest
Re:Team ejecting, lighting fires, sitting down etc
« Reply #13 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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Team ejecting, lighting fires, sitting down etc
« Reply #14 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
I know a little about a lot, and a lot about a little.