Home   Help Search Login Register  

Author Topic: Vechical  (Read 804 times)

0 Members and 1 Guest are viewing this topic.

Offline OFPWiZard

  • Members
  • *
Vechical
« on: 01 Feb 2005, 09:30:49 »
Other than looking within' the mission file... or well the addon file.

I would like to know where i can find the weapons on all the vechicals in OFP.

I found the weapon list for the players... it was an Excel Spreedsheet.   :D

I looked under Scripts >> Weapons and Ammo... but nothing is there.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Vechical
« Reply #1 on: 01 Feb 2005, 09:55:15 »
from the comref -

Quote
weapons vehicle

Operand types:
vehicle: Object
Type of returned value:
Array
Description:
Returns array of names of all vehicle's weapons..

Example:
weapons player


Offline OFPWiZard

  • Members
  • *
Re:Vechical
« Reply #2 on: 01 Feb 2005, 09:57:44 »
lost  ???

sorry

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Vechical
« Reply #3 on: 01 Feb 2005, 10:13:44 »
mkay, well without trying it myself, i'd suggest writing a small script - in fact here:

Code: [Select]
;get the names of weapons

hint format["%1 \n %2","tank1", weapons tank1]
~10
hint format["%1 \n %2","tank2", weapons tank2]
~10
hint format["%1 \n %2","tank3", weapons tank3]
~10

exit

copy paste that into notepad, save as "what_weapons.sqs", then in your mission, put

[] exec "what_weapons.sqs"

in the init line of anything. this should work, assuming you've named your vehicles tank1, tank2 etc.

also note - there is a list of all the things you want in the official BIS comref. get it from this page.
« Last Edit: 01 Feb 2005, 10:14:33 by bedges »

Offline OFPWiZard

  • Members
  • *
Re:Vechical
« Reply #4 on: 01 Feb 2005, 11:04:20 »
oHHHHH

comref = Command Reference... hehe
I R STUPID

 :P :wave:

one thing... is that ; character use in many scripts a form of a REM statement.  Such as in QBASIC /  VBasic... you use a ' for a hidden value.  It like passes on / doesn't read that "string."
« Last Edit: 01 Feb 2005, 11:10:30 by OFPWiZard »