Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Add mg to vehicle
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Add mg to vehicle (Read 1223 times)
0 Members and 1 Guest are viewing this topic.
Trigger_Happy
Guest
Add mg to vehicle
«
on:
26 Feb 2005, 22:26:04 »
im trying to add a mg to a vehicle through the action menu... everything works but when i click the action it doesnt do anything:
_unit addweapon "Browning"
_unit addmagazine "Browning"
am i writing the script wrong?
Logged
Cap
Guest
Re:Add mg to vehicle
«
Reply #1 on:
26 Feb 2005, 22:28:53 »
try
_unit addweaponcargo ["browning", 1]
_unit addmagazinecargo ["browning", 10]
Logged
Trigger_Happy
Guest
Re:Add mg to vehicle
«
Reply #2 on:
26 Feb 2005, 22:37:42 »
still get the action, but when i click it nothing happens. thanks for the reply tho ;D
Logged
Cap
Guest
Re:Add mg to vehicle
«
Reply #3 on:
26 Feb 2005, 22:42:03 »
hmmm you are trying to add a mounted machinegun to a vehicle what vehicle are you doing this for
Logged
Trigger_Happy
Guest
Re:Add mg to vehicle
«
Reply #4 on:
26 Feb 2005, 23:10:56 »
cessna...lol
Logged
Triggerhappy
Contributing Member
Llama, it's what's for dinner.
Re:Add mg to vehicle
«
Reply #5 on:
26 Feb 2005, 23:51:07 »
no matter what you add, it isn't gonna show up on the model when you add it.
can you get in the vehicle and be a gunner?
BTW: name stealer!
;D
Logged
Sliding plane crash script
Arrest script
Trigger_Happy
Guest
Re:Add mg to vehicle
«
Reply #6 on:
27 Feb 2005, 00:00:28 »
no cant be gunner...so how can i do this then?
Logged
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:Add mg to vehicle
«
Reply #7 on:
27 Feb 2005, 00:41:47 »
The only way to add a weapon to a vehicle is to edit the p3d model for that vehicle.
Basically you need to add a proxy for the weapon and then add the relevant bits to the config.cpp for that model.
Planck
Logged
I know a little about a lot, and a lot about a little.
Raptorsaurus
Editors Depot Staff
Re:Add mg to vehicle
«
Reply #8 on:
27 Feb 2005, 01:59:50 »
WADI made a script that allows you to put a MG on any vehicle, but it would look pretty funny on a cesna. ;D
Anyway, here is a link to the script in the editor depot:
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_3
I actually tested it on a Cesna just to goof around. Be carefull where on the Cesna you position the MG, if it is in a place where the plane is potentially beteen the MG line of fire and the enemy the MG guy will shoot the plane down while trying to shoot the enemey ;D
Logged
Trigger_Happy
Guest
Re:Add mg to vehicle
«
Reply #9 on:
27 Feb 2005, 02:11:33 »
i dont mean pysically putting the mg on it... i mean putting the mg gun inside it like putting hellfires on a apache
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Add mg to vehicle
Top of page