OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mr.sert on 28 Oct 2002, 12:40:09

Title: What are game logics ?
Post by: mr.sert on 28 Oct 2002, 12:40:09
Just like it says, what are game logics, and how do you use them, and where do you get them, or make them, etc? Hope this lack of knowledge is not contagious. Thanks in advance.....


- Mr. Sert
Title: Re:What are game logics ?
Post by: O Neil on 29 Oct 2002, 08:28:55
Trust me, game logics can be the most usefull items in OPFLASH. Think of a gamelogic as a unit, an INVISIBLE block.

You can change the hight of it using scripts and blah blah blah.

What they do, (At least what I do with them) is this:

Place a gamelogic (Units/game logic) on the map. Now place a trigger over it. Should have the following:   ;)
  Activation= Game logic,
 Effects/Camera=  Zoom in slow.

Then, if your smart, you'll play around and learn more !!!
e_mail me if you still don't get it. o.neil@paradise.net.nz

Hope this helps.

O Neil

PS: if anyone has another MAIN usage for the gamelogic, please tell me)
Title: Re:What are game logics ?
Post by: DrStrangelove on 29 Oct 2002, 11:28:48
I mostly use them as invisible landmarks (getpos name_of_gamelogic) where i can spawn soldiers or make soldiers go to the gamelogic position.

Another thing i learned in this forum(i forgot who posted it): make a gamelogic with the name of 'Server' into your mission. Whenever you check if 'Server' is a local object, you can determine if the local computer is the server or the client. Pretty good for things that need to be server-side only.
Title: Re:What are game logics ?
Post by: Sui on 29 Oct 2002, 23:37:47
Oh dear oh dear...

I would like to propose a minutes silence for the most mis-used, under-appreciated and one of the most powerful units in OFP editing... the Game Logic unit



Nah, screw the silence... lets talk about it intead ;D

Game Logics are much more than just invisible markers (one might think you could use an actual invisble marker instead ;)).
Game Logics can be given waypoints, (with the unique AND/OR funcion) and synced to (multiple) triggers etc. BIS used them to get the pauses between dialog (rather than a script with dealy routines).

For a few more details check out the tutorial: Using Logic Groups (http://www.ofpec.com/editors/browse.php?browsewhat=0&category=0_10&numreturn=25&displayformat=0&ofpv=1) on this page.
Title: Re:What are game logics ?
Post by: O Neil on 30 Oct 2002, 09:16:45
Ohk, thxs

O Nei