OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: T.S.C.Plage on 22 Aug 2002, 16:27:18
-
Hi mates,
is there a way to "lock" the ammoboxes in Resistance?
I mean of course it's possible in the editor but I mean I don't want to have the actionmenu entries "Put XXX in ammobox" (or something similar...don't play OFP in English).
I want to use them as walls and it realy s***s if you've over hundred actionmenu entries.
Thanks!
Plage
Btw, can somebody tell me how to remove the fuel from the drums? I've tried "this setfuel 0" and also to turn the fuellevel to zero in the editormenu but if I'm closing up with a vehicle always "Refuel at..." is shown.
-
1. this removeallweaponscargo (i think - untested)
2. Not that i know of - its ot a case of how much fuel it has, it just happens to have in its .cpp the ability to refuel other units :P
-
for the fuel use
this setFuelCargo 0
I've no idea about the other
-
I've tried "clearweapon/magazincargo this" and "locked" but this won't work cause you can always put your weapon/mag in it.
Thanks for the drum solution haven't thought of "cargo"...thanks again!
Plage
-
for the fuel use : this setFuelCargo 0
:thumbsup: Right on, blackie - we can choose between:
SetFuelCargo, SetAmmoCargo and SetRepairCargo :toocool: ...and probably others too ( like "SetVodkaCargo" etc ) :beat:
-
But is there no solution for the ammobox actionmenu problem? ???
-
Well.. could you remove everything from inside the ammobox? Then copy/paste the same box everywhere you need it.
With no ammo or weapons inside of the ammobox the only thing added to your action menu would be the one where you can choose to put your weapon inside it.
-
Why not make it an Addon?
Use the 3D Modell of an Ammobox, to replace the modell of
let's say the Barrel? That should work...and is easy enough
-Fishion
-
Hey Artak,
got me wrong. I even don't want to have anything in the initline! No d**n nothing!!! ;D
I only want to have an "old" ammobox! >:(
And Fishion I can't create an addon and it would be create if somebody can do it. I think it shouldn't be to big...
But there has to be a way to remove the actionmenu entries of the ammoboy somehow.
Plage
-
Couldn't you just put this setdammage 1.0 in the init field. When ammoboxes are destroyed, they usually keep a similar shape.
-
Yes but they're getting a lil' smaller.
But maybe there is no other way...
Thanks for the idea!
-
ummmmm - Tomb was right...
the init line isnt the actions - its the line called, umm, the init field which u can acces by double clicking on the ammo box...
then type this in:
this setammocargo 0
that is of course if Tomb is correct ::)
:thumbsup:
-
It just resets the ammoCargo to zero, just like "ClearMagazineCargo This"
I don't think it will prevent him from being able to PUT NEW ammo to the crate :P
Thus the yellow actionline entries won't disappear ::) it was just a sidenote actually.
-
aaaah yes - resistance - hmmmm - maybe theres command to remove that option? i'll have a search.
-
Hope you've more luck than me cause I've found nothing!
But thanks for your time anyway! :D
Plage