What's the Object limit?
Posted: Thu Jan 21, 2010 2:24 am
Because I think I just spawned a row of MTT's 1.5 MTT widths appart that is 10000 MTT's wide...
This is an encouraging development....I might return to mapping now that I can properly add a billion props to my map without it freezing (I'm thinking of programming a scaled up, full collision version of foliage...)
But first I'm going to use timers to make a neat little animation with this type of code...
Another thing Create Matrix makes feasible is some odd cutscene involving objects appearing and disappearing etc...
This thread really tells you how open up a whole new level of modding potential for SWBF2...
This is an encouraging development....I might return to mapping now that I can properly add a billion props to my map without it freezing (I'm thinking of programming a scaled up, full collision version of foliage...)
But first I'm going to use timers to make a neat little animation with this type of code...
Another thing Create Matrix makes feasible is some odd cutscene involving objects appearing and disappearing etc...
This thread really tells you how open up a whole new level of modding potential for SWBF2...
Code: Select all
--Spawn objects in a pattern
Matrix = GetPathPoint("StartMatrix")
--CreateMatrix(Rotation in Radians for Chosen axis, Rotation X, Rotation Y, Rotation Z, Move X, Move Y, Move Z, initial matrix)
NumObjsToSpawn = 10001
NumObjsSpawned = 0
XTranslate = 2
--(- 1)
while NumObjsToSpawn > NumObjsSpawned do
Matrix = CreateMatrix(0, 0, 0, 0, XTranslate, 0, 0, Matrix)
CreateEntity("cis_prop_mtt", Matrix, "Mtt",8)
XTranslate = XTranslate + 2
NumObjsSpawned = NumObjsSpawned + 1
end