OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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.
-
Editor depot(look for dispersion scripts), use the fire command (look it up I suppose or ask about it :)), or use an invisible target.
-
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)
-
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
-
"gunner dotarget target1" and "gunner dofire target1" comes in the init file from the gun? or the soldier?
-
that comes in a script or what ever you what really i usually use it in a script
-
i only use the init file , because i have no skill in scripts :P
-
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
-
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
-
well ok o try it
thanks ;)
-
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 ???
-
.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"
-
cool thx :)
-
...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.