OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Atropin on 30 Aug 2005, 21:02:49
-
Hi!
IÂ'm really happy to see that ofpec is back online ;D. Now i can ask my stupid Questions again.
My Problem: I make an Cargo Truck Addon and i want to hide CoDriver Weapons because i can see some weapon details through the CoDriver door and i cant move the Proxy to the left any more....
hideWeaponsCargo=true; hides weapons from all cargos and i dont want that.
I can define CoDriver as Commander or Gunner and remove his Weapons with hideWeaponsCommander or hideWeaponsGunner but it make no sense to do that by cargo truck......
I tried hideWeaponsCoDriver but this command dont work (because its not exist :P).
Then i tried hideWeaponCargo[]={1,0}; but it makes only error....
I think iÂ'm to stupid for this :-[ Can someone help me with configcommand or script?
Thx
-
you could make a whole new animation for the codriver and put hideweapon=1 in the config of the weapon. tut on how to make new anims and to config them: http://ofp.gamezone.cz/_hosted/animcenter/de/index.php
that's the only solution i remember atm.
-
Thx dude ;D
I want to try make an Animation when there is no othe Possibility to solve this Problem....
Someone else any Ideas?
-
Have you tried scripting to check if your co-driver is in the vehicle, then removing his weapon. When he gets out, give him his weapon back.
Or use the getIn event handler. Read Igor Drukov's Tutorial on Event Handlers, in the Editor's Depot.
-
Or use the getIn event handler. Read Igor Drukov's Tutorial on Event Handlers, in the Editor's Depot.
;D thx a lot
solved