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

Title: "Locked" ammoboxes in OFP:R...
Post 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.
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Messiah on 22 Aug 2002, 17:00:36
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

Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Black_Feather on 22 Aug 2002, 17:02:44
for the fuel use

this setFuelCargo 0

I've no idea about the other
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: T.S.C.Plage on 22 Aug 2002, 17:23:57
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

Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Tomb on 23 Aug 2002, 00:06:23

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:

Title: Re:"Locked" ammoboxes in OFP:R...
Post by: T.S.C.Plage on 23 Aug 2002, 14:32:36
But is there no solution for the ammobox actionmenu problem? ???
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Artak on 23 Aug 2002, 17:03:28
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.

Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Fishion on 23 Aug 2002, 18:32:45
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
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: T.S.C.Plage on 24 Aug 2002, 15:05:29
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
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: angusjm on 24 Aug 2002, 19:01:52
Couldn't you just put this setdammage 1.0 in the init field.  When ammoboxes are destroyed, they usually keep a similar shape.
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: T.S.C.Plage on 25 Aug 2002, 00:51:03
Yes but they're getting a lil' smaller.

But maybe there is no other way...

Thanks for the idea!
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Messiah on 25 Aug 2002, 00:57:23
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:
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Tomb on 25 Aug 2002, 01:08:09
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.
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: Messiah on 25 Aug 2002, 01:41:59
aaaah yes - resistance - hmmmm - maybe theres command to remove that option? i'll have a search.
Title: Re:"Locked" ammoboxes in OFP:R...
Post by: T.S.C.Plage on 25 Aug 2002, 18:09:54
Hope you've more luck than me cause I've found nothing!

But thanks for your time anyway! :D

Plage