Home   Help Search Login Register  

Author Topic: Game Logic  (Read 1032 times)

0 Members and 2 Guests are viewing this topic.

BrAinOfJ

  • Guest
Game Logic
« on: 02 Dec 2003, 17:02:51 »
What is a game logic? How do we use them? What do they do?

I searched the tutorials, but no one has explained them... I have literally no idea what one does, or why i should use it.
More importantly, by not knowing how to use it, i dont know what i could be doing to make my missions better by using them.

Can someone explain it, and give an example of one in use and why its used as opposed to going about the same problem a different way ?

Thanks guys
« Last Edit: 02 Dec 2003, 17:03:52 by BrAinOfJ »

m21man

  • Guest
Re:Game Logic
« Reply #1 on: 02 Dec 2003, 17:26:17 »
A game logic is an invisible, invincible unit that is sometimes used in camera scripts, or anything that requires a coordinate for a unit to move to.
« Last Edit: 02 Dec 2003, 17:26:34 by m21man »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Game Logic
« Reply #2 on: 02 Dec 2003, 17:49:14 »
There isn't much in the tutes you're right, but there is an excellent thread.  Use the forum search function.   It was quite a while ago.
Plenty of reviewed ArmA missions for you to play

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Game Logic
« Reply #3 on: 02 Dec 2003, 17:54:45 »
Quote
A game logic is an invisible, invincible unit that is sometimes used in camera scripts, or anything that requires a coordinate for a unit to move to.


Yup...

Or if you De-Pbo some of the orig. BIS 1985 campaign missions, the Game Logics are used to co-ordinate for example the radio traffic, like in 'After Montignac'... So you can actually reduce scripting with them...

And I think these are needed in MP  ???  too...

EDIT:
Quote
There isn't much in the tutes you're right, but there is an excellent thread.  Use the forum search function.  It was quite a while ago.

I think this is the thread you're referring to...

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9923;start=0
« Last Edit: 02 Dec 2003, 18:02:18 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Game Logic
« Reply #4 on: 02 Dec 2003, 18:34:24 »
Got it

Gamelogic thread.

The other thing you can use a game logic for is getting dead bodies out of vehicles .... put a gamelogic in instead of the deceased, which causes him to fall out.  Then remove the GL and an ordinary loon can get in instead.  Similarly you can use gamelogics to fill cargo spaces so that you can get your loons to sit in the places you want.


Edit:  duh-oh, too slow again...
« Last Edit: 02 Dec 2003, 18:35:30 by macguba »
Plenty of reviewed ArmA missions for you to play

BrAinOfJ

  • Guest
Re:Game Logic
« Reply #5 on: 03 Dec 2003, 13:13:38 »
still a bit fuzzy....

Why is a game logic different to a trigger. to use an example above, why couldnt i have a trigger to set the units health to zero for him to fall out of a truck?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Game Logic
« Reply #6 on: 03 Dec 2003, 15:01:38 »
GLs and triggers are completely different animals.    One the differences is that a GL exists at a specific point, like an object.   A trigger never exists at point:  it either has no geographical position at all (say if the condition line was a variable) or else it covers an area.    Don't worry, it'll all clear up as you get more into OFP editing.

If you setdammage 1 a loon in a vehicle in general he will stay in the seat rather than falling out.    This may prevent another AI unit from using that seat, which is particularly annoying if it's the driver.     Putting a GL in and out of that seat clears it for the next man.    As is usually the case in OFP there are other ways of achieving the same thing.
Plenty of reviewed ArmA missions for you to play