OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: McHale on 11 Jul 2003, 04:02:41

Title: Game logic
Post by: McHale on 11 Jul 2003, 04:02:41
How many game logics in total can you place in a mission? IE: Is there a limit?  :-*
Title: Re:Game logic
Post by: gadolinite on 11 Jul 2003, 05:20:34
There is none I know of.  Any mission (depending on your system, more or less) will lag if you place lots of units (not sure on logics, though).  Try to avoid this.  About the gamelogics, I never used so many of them that I really noticed a lag difference.  So I see it both ways, since a gamelogic is invisible, it will not cause lag.  Since it is a unit, it will cause lag.

Just to be safe, keep it to a minimum; by the way what do you need all the gamelogics in the world for???
Title: Re:Game logic
Post by: CLITCOMMANDER on 11 Jul 2003, 12:19:15
About gamelogics i'm not certain that there is a limit but i know that there is with units something like 150 units per side, also a limit of groups, 63 groups total and if im not mistaken gamelogics may take up group spots but dont take my word for it.

And to answer you question gadolinite gamelogics can be used for a number of things (obviously) wut mainly would use them for is if u would like to use a referrence for telaporting soldiers into a position or for just to name a unit. They're basicly an extra unit if u ever need one in the editing world.

BTW i no they are used a lot for CTF's

-=CC=-
Title: Re:Game logic
Post by: McHale on 12 Jul 2003, 01:35:02
>by the way what do you need all the gamelogics in the world for???

Because each logic in my campaign spawns units when you enter an area and removes when you leave. So the whole island can be populated without any lag.
Title: Re:Game logic
Post by: Captain Winters on 12 Jul 2003, 01:42:42
Mr. Commander has it right. 63 groups on a side. Counts for anything!

Tanks! 8)
Title: Re:Game logic
Post by: LCD on 12 Jul 2003, 02:27:07
u can also save da memory da comp use on da GLs - just by simple work ;)

use hints (hint format ["%1",getpos GLname]) 2 get da pos of da GL - nd den u can just use dis position everywere u wanna put getpos GLname - nd if dere rGLs dat only used 4 posing - u dont need em nymore ;)

LCD OUT
Title: Re:Game logic
Post by: deaddog on 12 Jul 2003, 03:24:45
Or use can use object IDs for positions.  Just look up the object ID of a bush or a road section where you want to go or units to appear and then do this:

unit setpos/move/whatever getpos (object 12345).

This will move or setpos the unit to the location of the object with the id = 12345.  Obviously, change the ID to the correct object  :)

This way, you do not need extra game logics or markers or have to write down the co-ordinates.