OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone on 23 Apr 2005, 22:20:03

Title: Firing Blanks
Post by: Killzone on 23 Apr 2005, 22:20:03
Hi,

Does anyone know of a script (if it is even possible) that makes the weapons fire blanks? I looked in the editors Depot with no luck. Is this even possible?

This would help me out in a mission I am working on


Thanks in advance ;D
Title: Re:Firing Blanks
Post by: Blanco on 23 Apr 2005, 22:24:11
Here you go :)

http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=20556;start=0
Title: Re:Firing Blanks
Post by: Killzone on 23 Apr 2005, 22:26:42
My searching skills are pathetic.  ;)  

thanks for the quick response

Title: Re:Firing Blanks
Post by: Merc on 30 Apr 2005, 14:25:00
Here is a heavily edited script of mine (i changed the title too).

Put
Code: [Select]
this addeventhandler ["fired",{_this exec "blanks.sqs"}] in your units init. field.

The script basicly just deletes the bullet, but if you fire strait down, then the script will not have time to delete the bullet, and the bullet will hit the ground.  ;D
Title: Re:Firing Blanks
Post by: Merc on 30 Apr 2005, 14:26:12
oops... ;D

i forgot to add the script into my post.
Title: Re:Firing Blanks
Post by: h- on 30 Apr 2005, 16:28:28
There's no need for any scripts

Code: [Select]
this addeventHandler ["fired",{deleteVehicle (nearestObject [_this select 0,_this select 4])}]
And no more escaping bullets...
Title: Re:Firing Blanks
Post by: Merc on 30 Apr 2005, 16:56:50
@HateR_Kint
that is basicly my script but shortened a lot.
Title: Re:Firing Blanks
Post by: h- on 30 Apr 2005, 20:05:12
Yes, and more effective...

Btw, that script of yours had way too much stuff in it anyway...
There's no need for any of those # labels etc...
Title: Re:Firing Blanks
Post by: Merc on 30 Apr 2005, 21:23:18
that is probably because it was a script that did something else but i deleted over half of it for this forum.
Title: Re:Firing Blanks
Post by: h- on 30 Apr 2005, 23:09:11
Oh, ok...

Anyway, as you saw yourself, deleting the bullet in the script may cause the bullet to 'escape'... More probable under even a slight lag...
Title: Re:Firing Blanks
Post by: Morglor9 on 01 May 2005, 06:21:55
script basicly just deletes the bullet, but if you fire strait down, then the script will not have time to delete the bullet, and the bullet will hit the ground.  ;D

from what i hear, blanks do actually cause damage at close range, because they still have the explosion. i believe it is actually possible to kill someone by putting a gun to someone's temple and firing a blank.