OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Victorcharlie on 18 Feb 2005, 17:34:05

Title: just surpressing fire
Post by: Victorcharlie on 18 Feb 2005, 17:34:05
I am making a campaign about the life of a 'Nam grunt and I want to make a training mission where there is a HMG firing over his head so if he doesn't crawl and starts standing up, the HMG will tear him up. How do I make a weapon just fire at "nothing"  :-\

Thanks,

VC
Title: Re:just surpressing fire
Post by: PrejudiceSucks on 18 Feb 2005, 17:49:01
There are a fair few 'invisible' addons, then all you'd need to use on it would be (if the object is 'invisible' and gunner is 'M60')

M60 doFire invisible

But you'd need to set the skill quite high and need to position it higher than someone prone.
Title: Re:just surpressing fire
Post by: Dubieman on 18 Feb 2005, 20:51:25
Editor depot(look for dispersion scripts), use the fire command (look it up I suppose or ask about it :)), or use an invisible target.
Title: Re:just surpressing fire
Post by: US-Marine on 12 Mar 2005, 14:46:55
Hy i wanna do supressing fire for a Fieldgun (from east) but there should be westunits.

I tried "Gun dofire at target" but it dosn't work they won't shoot ???



(i won't open new topic because it exsist)
Title: Re:just surpressing fire
Post by: 456820 on 12 Mar 2005, 15:08:49
what i would do i dont know if it would work would be make some walls wire then more walls
||<>||- where in that the || would be walls and the <> would be wire and then - would be the gunner have a target oposite the gunner and give the gunner a command
gunner dotarget target1
gunner dofire target1
Title: Re:just surpressing fire
Post by: US-Marine on 12 Mar 2005, 15:20:41
"gunner dotarget target1" and "gunner dofire target1" comes in the init file from the gun? or the soldier?
Title: Re:just surpressing fire
Post by: 456820 on 12 Mar 2005, 15:26:41
that comes in a script or what ever you what really i usually use it in a script
Title: Re:just surpressing fire
Post by: US-Marine on 12 Mar 2005, 15:27:40
i only use the init file , because i have no skill in scripts :P
Title: Re:just surpressing fire
Post by: macguba on 12 Mar 2005, 15:36:08
To make this work you will need just a little skill in scripts.   Read

Abuu's Basic Editing Tutorial
snYpir's A Friendly Intro to Code Snippets
Johan Gustafsson's Scripting Guide

Title: Re:just surpressing fire
Post by: 456820 on 12 Mar 2005, 15:38:43
well its really simple for this i would have a trigger for when west is present then the machine gun fires its your choice change it for your needs
then on the activation field put
[] exec "script.sqs"
where script.sqs is the name of the file then make a .sqs file name it script and place
gunner dotarget target1
~1
gunner dofire target1

that will make the gunner target target1 then wait a second then fire at target1
simple
Title: Re:just surpressing fire
Post by: US-Marine on 12 Mar 2005, 16:08:54
well ok o try it

thanks  ;)
Title: Re:just surpressing fire
Post by: US-Marine on 12 Mar 2005, 17:20:12
I have a sqs file for it now

the only thing is , the gunner gets out of the gun after each shot then he mount shoots and get out and if there is a Commander too he won't shoot ???
Title: Re:just surpressing fire
Post by: Kyle Sarnik on 12 Mar 2005, 17:26:02
.sqs files go in the mission directory, they can also be assigned to subfolders and called like so:

[] exec "scripts\myscript.sqs"

and .sqs files can also be called from pbo files:

[] exec "\myaddon\scripts\myscript.sqs"
Title: Re:just surpressing fire
Post by: US-Marine on 12 Mar 2005, 17:43:21
cool thx :)
Title: Re:just surpressing fire
Post by: Tomb on 13 Mar 2005, 02:34:37
...How do I make a weapon just fire at "nothing"

You can of course use "invisible targets" etc. but I simply use JAM-HD soldiers!
 ;D They couldn't hit Dolly Partons a** from a square inch!!! ;D ;D ;D no harm done.