OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
Here you go :)
http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=20556;start=0
-
My searching skills are pathetic. ;)
thanks for the quick response
-
Here is a heavily edited script of mine (i changed the title too).
Put 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
-
oops... ;D
i forgot to add the script into my post.
-
There's no need for any scripts
this addeventHandler ["fired",{deleteVehicle (nearestObject [_this select 0,_this select 4])}]
And no more escaping bullets...
-
@HateR_Kint
that is basicly my script but shortened a lot.
-
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...
-
that is probably because it was a script that did something else but i deleted over half of it for this forum.
-
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...
-
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.