OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pexmo on 11 Feb 2005, 11:33:15
-
Ok i know this must have been asked before but i couldnt find the answer for it in the FAQ or the forum, ok here it goes:
I want to be able to spawn groups with set members and initline "values" and set waypoints... By a trigger. This is to reduce the performance loss in mission with a large amout of troops.
How do i do this?
-
This is nothing to do with the "condition of presence" field in the unit detail screen, whichcontrols the likelihood of the unit appearing at the start of the mission.
What you need are createUnit, createVehicle or camCreate commands, principally createUnit. Check the online comref for an example. The best way to create a really large amount of lag really quickly is to create a lot of units at the same time, so be careful.
There may be some scripts in the Ed Depot, not sure. Have a hunt around.
I also wrote a tutorial on reducing lag, which you might find helpful.
-
thx ill check this out
-
I guess i could set the units FAR away and teleport the groups in.... just have to find out how :)
Nice reducing lag turorial by the way :) :D :P
-
i can teleport the groups by teleporting each soldier in the group with a setpos getpos. they teleport to a gamelogic. The thing is that they woth continue using their waypoint after this teleportation. How do i fix this?
-
by using a trigger of type 'switch' - again, there are good tutorials explaining how powerful switch triggers are.