arma:scripting:pmc_logic1
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| arma:scripting:pmc_logic1 [2007/07/13 06:20] – created pmc_logics1 initial page snakeman | arma:scripting:pmc_logic1 [2024/08/01 10:43] (current) – links added. snakeman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Units on GameLogics ====== | + | ====== |
| - | **Units | + | [[https:// |
| + | |||
| + | **ArmA 1** aka Armed Assault (ArmA) | ||
| + | |||
| + | **Units | ||
| 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 " | 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 " | ||
| - | < | + | 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 " |
| + | < | ||
| _allvecA = [" | _allvecA = [" | ||
| _allvecB = [" | _allvecB = [" | ||
| _allvecC = [" | _allvecC = [" | ||
| - | + | _PMC_MakeTank | |
| - | PMC_MakeTank | + | |
| { | { | ||
| _myVec = (_allvecA select round random (_maxA - 1)); | _myVec = (_allvecA select round random (_maxA - 1)); | ||
| _vcl = _myVec createVehicle _respawnpoint; | _vcl = _myVec createVehicle _respawnpoint; | ||
| _vcl setpos _respawnpoint; | _vcl setpos _respawnpoint; | ||
| - | _grp=objNull; | + | _grp = objNull; |
| waitUntil { | waitUntil { | ||
| _grp = createGroup (east); | _grp = createGroup (east); | ||
| !(isNull _grp); | !(isNull _grp); | ||
| }; | }; | ||
| - | + | ||
| " | " | ||
| " | " | ||
| Line 48: | Line 52: | ||
| }; | }; | ||
| - | PMC_MakeGuardInf | + | _PMC_MakeGuardInf |
| { | { | ||
| - | _grp=objNull; | + | _grp = objNull; |
| - | waitUntil { | + | waitUntil |
| + | | ||
| _grp = createGroup (east); | _grp = createGroup (east); | ||
| !(isNull _grp); | !(isNull _grp); | ||
| }; | }; | ||
| - | + | ||
| " | " | ||
| " | " | ||
| Line 75: | Line 80: | ||
| // choose new digit for the gamelogic " | // choose new digit for the gamelogic " | ||
| - | _a=1; | + | _a = 1; |
| _p = call compile format[" | _p = call compile format[" | ||
| Line 85: | Line 90: | ||
| // the position of our gamelogic | // the position of our gamelogic | ||
| - | _respawnpoint = getpos | + | _respawnpoint = getPos |
| - | [] call PMC_MakeTank; | + | [] call _PMC_MakeTank; |
| - | [] call PMC_MakeGuardInf; | + | [] call _PMC_MakeGuardInf; |
| // add one digit to our gamelogic name. | // add one digit to our gamelogic name. | ||
| - | _a=_a+1; | + | _a = _a + 1; |
| _p = call compile format[" | _p = call compile format[" | ||
| }; | }; | ||
| </ | </ | ||
| + | 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.1184307648.txt.gz · Last modified: 2007/07/13 06:20 by snakeman
