OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Blanco on 17 May 2003, 00:06:03

Title: problem with Inv44 mortar
Post by: Blanco on 17 May 2003, 00:06:03
I already posted this at the inv44 forum, but noone could help me , so I try it here.

I can't add ammo to the USmortars...

Ammoname is "m2mortar"  
Weaponname is ....???????
Classname is "m2mortar" too...

When I add ammo with
Quote
Mortarname addmagazine "m2mortar"

Nothing happens, no error...nothing...

I'm sure about the ammoname cause I've used

Hint format ["ammo %1", magazines mortarname]

Return is "m2mortar"

but...

Hint format ["weapon %1",weapons mortarname]

return was an empty array???? :(

Is this possible or is this a bug in the config? I dunno nothing about ccp & stuff... :-\


Hmmm... I want unlimited ammo for my mortars and I tried another way...

When the mortar's empty I delete it, and create a new one at the exact position and direction of the previous.
It works, the only problem is the "exact position"

How can I do that?

The script needs to remember the exact position and dir of the first mortar and keep it in a variable.