Home   Help Search Login Register  

Author Topic: Game Logic  (Read 1096 times)

0 Members and 3 Guests are viewing this topic.

Offline Taggart

  • Members
  • *
Game Logic
« on: 13 Feb 2004, 11:06:34 »
Dear All

Is there anyone out there who can explain the subject of Game Logics within the mission editor, what they are about and how to use them?  ???  I have read various tutorials, too many to mention in fact, and it seems to be a subject that is not directly spoken about and often avoided. Co-operation would be greatly appreciated.  ;D
Tried in vain got an artery

Offline Marvin

  • Members
  • *
  • One day they will come
Re:Game Logic
« Reply #1 on: 13 Feb 2004, 11:12:05 »
There are many posibilities to use gamelogics!
The one could :

target positions! Example if you name the gamelogic, like targethere, and then at the soldier init field type this dowatch targethere, then he will face to this positions!

or

myunit domove getpos targethere

see there are numberous posibilities to use this!

Also the gamelogic can be used with the waypoints! You can add waypoint to gamelogic with or , and statements! This is little advanced!
« Last Edit: 13 Feb 2004, 11:14:02 by Marvin »
Is there any games than Flashpoint?

Offline Marvin

  • Members
  • *
  • One day they will come
Re:Game Logic
« Reply #2 on: 13 Feb 2004, 11:13:13 »
The gamelogic is just "thing" what make some things easier!
Is there any games than Flashpoint?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Game Logic
« Reply #3 on: 13 Feb 2004, 11:15:09 »
Have you tried the search button? This have been explained by Macca (I think) about 5 times or so.

Anyway, here it goes:

Gamelogics are just like any other troop, it's just invisible, can't carry weapons, moves from point A to point B in 0 seconds, can't be player controlled and have 0 AI, thus it makes NOTHING unless it's told to do so.

BIS used them as conversation makers. You see, a game logic moves from A to B extremly fast. So if you have a bunch of WPs with delayers on them, you can make a conversation with it, when GL move to A, X says "Hello", move to B, Y says "Hello, go screw yourself". Get it?

Players and mission editers use them mostly as markers. For example, you need to move a unit without him going anywhere(setpos command), you put out a GL where you want him and type this:
loon1 setpos getpos GL1

Hope it helped a bit.

:beat: *Gets Shot* :beat:

Offline Marvin

  • Members
  • *
  • One day they will come
Re:Game Logic
« Reply #4 on: 13 Feb 2004, 11:21:11 »
Use the gamelogics at you`r own risk!  ;D
Is there any games than Flashpoint?

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Game Logic
« Reply #5 on: 13 Feb 2004, 11:25:29 »
Gamelogics are some sort of "Special Units"  ;D you can do a lot with them.

Most common use on MP maps is to determine if a comp is Server or not. Just place a GL and name it server. This is useful when you have scripts that have only to be esecuted on the server (as createvehicle / createunit scripts). Just add the following line on top of your script:

?!local Server: exit

this will exit the script if it is executed on a client.

Another use of GL is (at least i use it for) camera positioning in cutscenes.
Instead of using

_cam camsetpos [x,y,z]

i put a gamelogic in the editor, name it "campos01" and pos the camera on it

_cam camsetpos getpos campos01

in the editor you can now easily drag the camera position around, instead of editing a cam script.
Sure, this would work with any other object too, but there aren't a lot invisible objects like a GL is  ;D

Also you can use GL as a Unit and assign waypoints to make things happen (like calling scripts...AFAIK BIS used GL waypoints for creating the cutscenes, they aren't scripted...remember the mission in CWC where you're in a Jeep and your squad leader was talking to you? this was done with waypointed GL's)

I bet there are a lot more things you can do with GL but i think this gives you a basic idea what GL's are good for....use your imagination and i'm sure you could find more things you could do with them.

:edit:

i should learn to type faster...as i began there weren't any replies...lmao  ;D
« Last Edit: 13 Feb 2004, 11:26:37 by myke13021 »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Game Logic
« Reply #6 on: 13 Feb 2004, 12:10:44 »
GLs are very powerful.   There is an excellent thread, which I always try to find when this question comes up .... hang on ....

this one

game logic
gamelogic
gl
gls
gamelogics
game logics
« Last Edit: 13 Feb 2004, 12:18:17 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Game Logic
« Reply #7 on: 13 Feb 2004, 12:15:33 »
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=871;start=0

There's another thread around aswell - i'm sure Macca
will post the link soon  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Taggart

  • Members
  • *
Re:Game Logic
« Reply #8 on: 13 Feb 2004, 15:32:26 »
Some serious reading  ::) Thanks to all who contributed  :D
Tried in vain got an artery