OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: StonedSoldier on 22 Mar 2005, 13:21:58

Title: Guns on tables
Post by: StonedSoldier on 22 Mar 2005, 13:21:58
check out this script (http://www.ofpec.com/editors/resource_view.php?id=782) thats in the pending list and give me your feedback
Title: Re:Guns on tables
Post by: nominesine on 22 Mar 2005, 15:30:18
I downloaded it and read it. Everything makes sense and it is easy to understand everything. Didn't have the oportunity to test it. At first glance it looks like a timesaver for lazy people (like me), but isn't it easier to just create a weaponholder and place the weapons directly via the initline of the table/GL? That's what I always do.
Title: Re:Guns on tables
Post by: DBR_ONIX on 22 Mar 2005, 18:45:33
Not tried (This PC doesn't have OFP, getting my PC fixed this week).., but anything that makes anything easier is good! :)
- Ben
Title: Re:Guns on tables
Post by: StonedSoldier on 22 Mar 2005, 19:43:04
i tend to make scripts that make mission makers lives easier, the other day, i couldnt be bothered to build a wall so i wrote a script to do it instead
Title: Re:Guns on tables
Post by: bedges on 22 Mar 2005, 19:52:23
a wee idea for the pending 'guns on tables script' - you have the weaponholder idea for weapons laid flat... how about incorporating the "secondaryweaponholder" feature for upright weapons, like on a gun-rack?
Title: Re:Guns on tables
Post by: StonedSoldier on 22 Mar 2005, 21:20:52
it actually already uses weaponholder and secondaryweaponholder depending on wether the gun is primary or secondary, but i suppose if the mission maker wanted upright weapons just switch around the holders

upright
primaryweapons - secondaryweaponholder
secondaryweapon - weaponholders

laid flat
primaryweapons - weaponholder
secondaryweapon - secondaryweaponholder
Title: Re:Guns on tables
Post by: greg147 on 24 Mar 2005, 20:48:01
Just about it test this out, but hasn't it been done before?  :P

Click here!! (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=2&category=2&subcategory=2_&numreturn=25&displayformat=0&ofpv=1&searchstring=Weapon+VehicleCreate&searchwhat=2&searchlevel=1&searchopts=)

Or is that different?  ;)
Title: Re:Guns on tables
Post by: DBR_ONIX on 24 Mar 2005, 22:59:16
Change your link to..
[ url=http://Address Here]Click here!![/url]
remove the space between [ and url
.. The long link screws the layout
- Ben
Title: Re:Guns on tables
Post by: greg147 on 25 Mar 2005, 00:06:07
OK, done  ;)

Sorry  ;D

So, is that the same script or not?  :P
Title: Re:Guns on tables
Post by: StonedSoldier on 25 Mar 2005, 01:41:25
to be honest id never even known about that script before, although looking at it now there does seem to massive differences, namely in the amout the mission maker has to do, with this all you need to do is pass one array to the script and it automatically detects wether the gun is primary or secondary and creates the appropriate weaponholder
Title: Re:Guns on tables
Post by: Grunt249 on 25 Mar 2005, 03:33:34
Quote
but i suppose if the mission maker wanted upright weapons just switch around the holders

Is there any way you can either make a new script or upload a modified version that will allow weapons to be displayed in the vertical position, instead of horizontal? I have several uses for vertical weapons, but have not yet been able to find any method of doing this. If you could figure it out and get it to work, it would be a real lifesaver.

About the existing script, it works well for its purpose. I had used the previous script before, but I do agree that your script is a little better. It has many uses in missions and I hope to see it used in the future. Great job.
Title: Re:Guns on tables
Post by: StonedSoldier on 25 Mar 2005, 11:28:08
just for you i modified the script so you can decide wether you want horizontal or vertical weapons. although you ave to run the new script with a different array.

true - vertical
false - horizontal

[this,"m16","m16",0.955,true] exec "table.sqs"

Title: Re:Guns on tables
Post by: StonedSoldier on 04 Apr 2005, 14:07:37
ok, just for the benefit of the guys that asked for it, ive updated the script so guns can either be placed horizontally or vertically