Jump to content
Sign in to follow this  
NoxNoctum

What the hell is a game logic?

Recommended Posts

Like the one mentioned in this youtube description video:

Is it a script? How does it work? How does it effect the AI?

Share this post


Link to post
Share on other sites

From what I know from the first ArmA, it's a pre-packaged function/set of functions, that add something to a mission. For example, there's one that adds civilian life to an area. Quite useful really.

Share this post


Link to post
Share on other sites

Imagine it, like obvious things, that may not be obvious in virtual reality.

It's object, that contains specific instructions for game to be exectued in specific conditions.

Imagine a Cow. It does stand still after placing. Since we have no intention to have it as a garden decoration, we do ask cow to repeat "moo" thing and walk around.

Because we do ALWAYS want it to be like that, devs hardcoded this behaviour to cows, so we do need to place game logics to access these instructions.

Now imagine a private Grigorij Noobchenko. We want him, to care about his miserable life and (since he's a good comrade) we want him to help other wounded friends. So we place game logics, and synchronize them with our pvt. Noobchenko. Now he runs for cover, and first aid his friends who are about to die for mother Zagoria. Now imagine a general Guba, who is a twat. We do not want him, to help others, so we don't synchronize him with some game logics. If addonmaker wants to make Guba a fearsome demon, who is not afraid of bullets, he won't even sync our fearsome general with any of these game logics.

Game Logics contain various more complicated instructions for AI and gameplay. In example we have that nice Combat Module, with does spawn our troops within certain range of player, so loneliness doesn't motivate him to perform a suicide. (It's a bow toward Emo players). And since it's smart module it does delete units, that are far away and kill PC performance while not being used (this is bow towards overreacting hardware freaks). There are many various game logics. Utilize them for better game experience in your missions. Yet, if you wan't to face pure stupidity, you can still just enter Multiplayer mode.

Share this post


Link to post
Share on other sites

Hi NoxNoctum

Go into the editor

Game Logics are listed as side Game Logic.

They sometimes need attaching to another object.

Go into the ArmA II editing section of this forum and you will get some more info there.

http://forums.bistudio.com/forumdisplay.php?f=93

Kind Regards walker

Edited by walker

Share this post


Link to post
Share on other sites

I'm also a bit new to this concept so sorry if this is a dumb question but are the game logics "set in stone" or can modders edit them or write new ones?

Share this post


Link to post
Share on other sites
I'm also a bit new to this concept so sorry if this is a dumb question but are the game logics "set in stone" or can modders edit them or write new ones?

Modders have been using them since OFP :)

It's really just an empty object used it start up some scripts. Also used for other things at times.

Share this post


Link to post
Share on other sites

I'm thinking of a modified civilan game logic to be zombies instead =D

Share this post


Link to post
Share on other sites
Modders have been using them since OFP :)

It's really just an empty object used it start up some scripts. Also used for other things at times.

Ah! Dankie, Matt! Ok, so I do feel stupid now.:o

Just never heard the term until the release of this game.

Share this post


Link to post
Share on other sites

The first time I saw gamelogics was in OFP when I was studying a mission done by BIS people.

The gamelogic was used to control the flow of the mission by giving it "move", "cycle", "and", "or" waypoints, and these waypoints were synchronized with triggers. It is a way to enforce a certain sequence in the activation of triggers.

For example you place a gamelogic in editor and give it 2 move waypoints.

Then you create 2 triggers, you sync first trigger with first waypoint and second trigger with second waypoint. The second trigger will activate after the first trigger even if its conditions are met (because he's synchronized with the second move waypoint of the gamelogic, and the gamelogic won't go to second move point until the first move waypoint is activated which in turn won't activate until the first trigger activates).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×