PMC websites shut down October 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond october 13th 2025 when yearly web hosting fees are due.

User Tools

Site Tools


arma:scripting:pmc_logic1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arma:scripting:pmc_logic1 [2008/04/30 14:56] – added bit more explanation on gamelogic snakemanarma:scripting:pmc_logic1 [2024/08/01 10:43] (current) – links added. snakeman
Line 1: Line 1:
-====== Units on GameLogics ======+====== ArmA 1 Units On GameLogics ======
  
-**Units on GameLogics** by Snake Man+[[https://www.pmctactical.org/forum/viewforum.php?f=42|ArmA 1 Forum]], [[:arma|ArmA 1 Home]], [[arma:config|ArmA 1 Config]], [[arma:tools|ArmA 1 Tools]], [[arma:file_formats|ArmA 1 File Formats]], [[arma:missions|ArmA 1 Missions]], [[arma:modeling|ArmA 1 3D Modeling]], [[arma:terrain|ArmA 1 Terrain]], [[arma:texturing|ArmA 1 Texturing]], [[arma:scripting|ArmA 1 Scripting]] 
 + 
 +**ArmA 1** aka Armed Assault (ArmA) 
 + 
 +**Units On GameLogics** by Snake Man
  
 This was the very first script I put together, took a look Evolutions makeshilka function and adapted that. This will scan all **gameLogic**s named "**pmc_**?" where the **?** is a number digit ranging from **1** to **10** or more. Then if it finds a match, it runs the functions to create vehicle + soldiers in that gamelogic's grid coordinates position. This was the very first script I put together, took a look Evolutions makeshilka function and adapted that. This will scan all **gameLogic**s named "**pmc_**?" where the **?** is a number digit ranging from **1** to **10** or more. Then if it finds a match, it runs the functions to create vehicle + soldiers in that gamelogic's grid coordinates position.
  
 The whole point of this kind of method is that to create this mission, all you need to do is to place your unit/group and then what ever number of gamelogics. When you create gamelogic called "pmc" and then copy paste it around (CTRL-C and then CTRL-V) mission editor automatically creates the "pmc_1"... "pmc_2" and so on. The whole point of this kind of method is that to create this mission, all you need to do is to place your unit/group and then what ever number of gamelogics. When you create gamelogic called "pmc" and then copy paste it around (CTRL-C and then CTRL-V) mission editor automatically creates the "pmc_1"... "pmc_2" and so on.
-<code>+<code cpp>
 _allvecA = ["UAZ_AGS30","UAZMG","BRDM2","BMP2","ZSU","T72"]; _allvecA = ["UAZ_AGS30","UAZMG","BRDM2","BMP2","ZSU","T72"];
 _allvecB = ["UralRepair","UralReammo","UralRefuel","Ural","UralOpen"]; _allvecB = ["UralRepair","UralReammo","UralRefuel","Ural","UralOpen"];
Line 21: Line 25:
  !(isNull _grp);  !(isNull _grp);
  };  };
- +
  "SoldierECrew" createUnit [_respawnpoint, _grp];  "SoldierECrew" createUnit [_respawnpoint, _grp];
  "SoldierECrew" createUnit [_respawnpoint, _grp];  "SoldierECrew" createUnit [_respawnpoint, _grp];
Line 56: Line 60:
  !(isNull _grp);  !(isNull _grp);
  };  };
- +
  "SquadLeaderE" createUnit [_respawnpoint, _grp];  "SquadLeaderE" createUnit [_respawnpoint, _grp];
  "TeamLeaderE" createUnit [_respawnpoint, _grp];  "TeamLeaderE" createUnit [_respawnpoint, _grp];
Line 96: Line 100:
 </code> </code>
 The vehicles come in random type, however soldiers are always the "basic squad" style. The vehicles come in random type, however soldiers are always the "basic squad" style.
 +
arma/scripting/pmc_logic1.1209567360.txt.gz · Last modified: 2008/04/30 14:56 by snakeman