OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 31 Jan 2005, 19:20:31
-
hey chaps
ok how do i stop all the ammo being placed round the ammo creates in 1.96?
because everytime somone changes there weapon it always puts the ammo next to the box.
as you can imagine come to the end of a 2hr game it starts to get very jumpy near them creates.
so how can i stop it?
cheers
-
i would think that is being caused by the ammo crate being maxed out on storage, so.... put more crates there so you have more room.
my guess at least.
-
i believe the problem is that ammo which is swapped doesn't go back into the crate like weapons do, it's just dropped. peculiar to flashpoint i think, not something you can change...
note - i believe this to be the case, as i've witnessed it in my own missions; and as far as available 'space' in ammo crates goes, i don't think they can be maxed out.... i have my 'fireworks boxes' stuffed with 99 of everything, but it could as easily be 1000.
someone correct me if i'm wrong ;)
-
Can't remember the exact numbers, but ammo crates do have maximum storage capacities. 2000 mags comes to mind but don't quote me. No idea about weapons. I believe that spillage onto the ground is what occurs if the crate is full.
-
well, i've found that if you put each mag individually into the crate, then it doesn't matter, but when you put the weapon first, all the mags must fall out of the gun. :P ;)
My personal experience only.
-
yea like Tyger said it seems to be when u change weapon, all the ammo falls onto the floor... is there anyway to remove all the weapons and mags from the ammo create and just make it empy?
i have tryed:
removeallweapons this
and aslo put the ammo slide bar right down but it still has magazines in it.
i want to know because i'm just going to add a menu to it, that way it will stop the lag problem.
cheers
-
you could always try nearestObject[player,"M16"], or nearestObject[player,"BulletSingleW"] and then deleteVehicle that until all of them are removed.
*Syntax not gaurenteed on the BulletSingleW part.* :P
-
To make ammo box empty u should use "ClearMagazineCargo this" and "ClearWeaponCargo this" commands, i think.
Or u can try to add single magazine or weapon u r using and want to change into crate, it should help.
-
thanks chaps, worked nice...
cheers, Philly