OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: T.S.C.Plage on 07 Sep 2002, 08:29:59

Title: Two questions...
Post by: T.S.C.Plage on 07 Sep 2002, 08:29:59
1. In OFP:R it's possible to create a weapon (empty/full) on the ground.

What is the exactly command (empty/full)...think it's something with camcreate?

2. Is a lil' more difficult but I think I saw the answer somewhere...so please don't feel "not noticed" if you already answer it somewhere else (I simply can't find it anymore).

I want to create a trigger which ONLY can be activated by west groundunits. Not by planes, choppers or parachuters on the west side.

BONUSQUESTION: ;D
What's the "editor" name of GFX707's Mortar Addon (v0.95b)...tried mortar2 cause that's what's written in the config.cpp but the AI won't fire it if I use this name?

Tried:
unitname action ["weapon","mortar2"]
unitname fire ["mortar2","mortar2",...]


For gunner and commander of the mortar (one unit).

Thanks mates!

Greetz
Plage
Title: Re:Two questions...
Post by: Sui on 07 Sep 2002, 08:38:01
1. Try:
    wpnhlder = "weaponholder" createvehicle position
    wpnhlder addweapon ["m16",1]

Use "secondaryweaponholder" for secondary weapons (eg. LAW, RPG etc.). You may have to use addmagazine to get the weapon loaded (put it before the addweapon command)

2. Trigger

Radius: As required
Condition: West Present (or east/anyone etc.)
Condition Field: "Land" counttype thislist > 0

That trigger will only go off if a ground unit enters it

Sorry, I'm not familiar with that addon... so I don't get any bonus points I guess... ;D
Title: Re:Two questions...
Post by: T.S.C.Plage on 07 Sep 2002, 08:50:16
Great, 10 mins and I got my answer! ;D

Thanks Sui...I'll try that.

Let's see if somebody else is a lil' more "familiar" with the mortar?

But in case the main Qs are solved! ;)

Greetz
Plage
Title: Re:Two questions...
Post by: Bremmer on 07 Sep 2002, 10:48:51
Sorry , I don't know about the mortar either, but I think you may have to use the addmagazinecargo and addweaponcargo commands with the weaponholders rather than just addmgazine/addweapon.

 :-\
Title: Re:Two questions...
Post by: T.S.C.Plage on 07 Sep 2002, 18:54:48
Naa, got me wrong...want to make a already attached unit fire the mortar (not the riflegrenade...the real mortar by GFX707).

Don't has nothing to do with "addwhatever"...

Greetz
Plage
Title: Re:Two questions...
Post by: Bremmer on 07 Sep 2002, 19:50:01
I guess my reply was a little confusing - I wasn't answering your question about the mortar. I was answering your first question about placing weapons on the ground - I think Sui may have made a mistake (  :o ) in how he told you to do this.

Title: Re:Two questions...
Post by: T.S.C.Plage on 07 Sep 2002, 22:40:26
Yes...my fault!

Got it...thanks! ;)

Greetz
Plage
Title: Re:Two questions...
Post by: Sui on 08 Sep 2002, 07:03:38
Bremmer is probably right...

I don't have access to OFP at the moment... so I had no way to test that wee bit of advice ;D

Try 'em both and see which one works, and which one doesn't