OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 11 Aug 2005, 12:52:18
-
im just wondering how i can give every east unit limited ammo without using the slider i the edit unit bar
since that will take a very long time cause ive almost reached the 62 groups of east
anyway i just want all units to have limited ammo eg
2 Ak mags with abot 20 rounds in each mag and random things like that and 2 hand grenades or if there lucky 6
just random chances of different weapons
or will i have to do it manually ?
thanks
-
It's probably quicker to do it manually. It'll take you less time than you think. 300 units at 3s/unit is only 15 minutes.
You could create an array of all units on the map, detect what weapons and ammo each unit had and remove some, but by the time you've figured it all out and tested it you might as well do it the easy way. The easy way also helps with lag, which in a mission this big could be an issue. Never use a script when the mission editor will do.
-
oh okay thanks Macguba its very laggy at the moment with all the different Eh ive got fired, killed, hit and dammaged running on nearly every unit one the map wich is a hell lot and ive got loads of fast loops running so yeh ill do it the none laggy way
thanks
and topic solved