OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Assault_sniper on 03 Jun 2003, 00:28:14

Title: um.?
Post by: Assault_sniper on 03 Jun 2003, 00:28:14
how can i get a.i. to repel from  the BAS's MH-47E fast rope if youre not in their squad?
do i need a script,because i suck with scripts,also how can i get flares to shoot up?like youre part of a rescue squad and youre sent to save these guys and you reach a point near them so they shoot ap a flare so you know were they are.
Title: Re:um.?
Post by: cornholio on 03 Jun 2003, 03:04:09
Howdy :wave:

As for your first Q... No idea ???

Second Q...

Check out the "Script Snippets" in the Editors depot.
I saw a  couple flare scripts under "mines and traps"

 ;D

Title: Re:um.?
Post by: hurlothrumbo on 03 Jun 2003, 06:13:59
Learn.
:D
Title: Re:um.?
Post by: dmakatra on 03 Jun 2003, 07:40:45
first one I have no idea. Never used that stuff. It messes with yer brain ;) :P

second u can camcreate a flare but it never really "fires" but thats unecessary if u dont want the guys to preform the animation(if there is one except holding the gun so it points up)of launching a flare of course. Like this:
Code: [Select]
flare1="flareyellow" camcreate[getpos gl select 0, getpos gl select 1,48]
where 'flareyellow' is the sort of flare that you can use. Accepted flares are: 'flare', 'flareyellow', 'flaregreen' and 'flarered'
where 'gl' is the target(whom or what the flare should be over).
where '48' is the height that the flare should be. Though above the target is if the target is 100 meter up in the air it will be 148 meters up in the air(I recommend u use a number above 48 though).
Title: Re:um.?
Post by: macguba on 03 Jun 2003, 10:32:06
leader grp1 fire "flare"

syntax not guaranteed.
Title: Re:um.?
Post by: LCD on 03 Jun 2003, 10:55:08
@ maccas way

yeah it wil work used it in ma mision (i hate camcreatin flare - its unrealistic  >:() - jsut make sure da man u tell 2 fire da flare have flares ;)

LCD OUT
Title: Re:um.?
Post by: Knut Erik on 03 Jun 2003, 20:32:26
leader grp1 fire "flare"

syntax not guaranteed.

I have the exsact syntax  ;D
(Found in the official forums)

If it is a WEST grenade launcher, use this:
YourMan fire ["m203muzzle", "flare", "flare"]

If it is a EAST grenade launcher, use this:
YourMan fire ["grenadesmuzzle", "flare", "flare"]
Title: Re:um.?
Post by: LCD on 03 Jun 2003, 20:35:13
u dont need all da ["m203muzzle", "flare", "flare"]thingy cuz da - cuz if u check da command referance

Quote
unit fire weaponName

Operand types:
unit: Object
weaponName: String
Type of returned value:
Nothing
Description:
Unit will fire from given weapon.

Example:
soldierOne fire "HandGrenade"

comment »



--------------------------------------------------------------------------------


unit fire array

Operand types:
unit: Object
array: Array
Type of returned value:
Nothing
Description:
Unit will fire from given weapon. Argument has format [muzzle, mode, magazine] or [muzzle, mode].

Example:
soldierOne fire ["throw","SmokeShell","SmokeShell"]

u can onlyput weapon name ;)

LCD OUT