Difference between revisions of "RallyPoint"
Jump to navigation
Jump to search
(Created page with "<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block; border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Description</div> <dl...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
Gameplay | Gameplay: Eric's Mission Framework | ||
</div></dd> | </div></dd> | ||
</dl> | </dl> | ||
Line 28: | Line 28: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
[unit, cooldown, | [unit, cooldown, object] call '''emf_gameplay_fnc_rallyPoint''' | ||
</div></dd> | </div></dd> | ||
Line 45: | Line 45: | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
object: String - (Optional) classname of the object to use.[Default: "Misc_backpackheap_EP1"] | |||
</div></dd> | </div></dd> | ||
Line 61: | Line 61: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
[player, 5] call ''' | [player, 5] call '''emf_gameplay_fnc_rallyPoint'''; | ||
</code></dd> | </code></dd> | ||
Line 67: | Line 67: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
["SL", 5, "Vysilacka"] call ''' | ["SL", 5, "Vysilacka"] call '''emf_gameplay_fnc_rallyPoint'''; | ||
</code></dd> | </code></dd> | ||
Line 73: | Line 73: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 3:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 3:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
<nowiki>[[Unit1, Unit2, Unit3], 15]</nowiki> call ''' | <nowiki>[[Unit1, Unit2, Unit3], 15]</nowiki> call '''emf_gameplay_fnc_rallyPoint'''; | ||
</code></dd> | </code></dd> | ||
Line 85: | Line 85: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;"> | ||
<div style="display:block;">[[ | <div style="display:block;">[[restrictedVehicle]]</div> | ||
<div style="display:block;">[[repairRearmTrigger]]</div> | |||
<div style="display:block;">[[setRole]]</div> | |||
<div style="display:block;">[[safeStart]]</div> | |||
<div style="display:block;">[[slingPrimary]]</div> | |||
<div style="display:block;">[[tracers]]</div> | |||
<div style="display:block;">[[unitInvestigate]]</div> | |||
</dd> | </dd> | ||
Line 95: | Line 101: | ||
<!-- CATEGORIES --> | <!-- CATEGORIES --> | ||
[[Category:Gameplay | [[Category:Gameplay Functions: Eric's Mission Framework]] | ||
[[Category:Functions: Eric's Mission Framework]] | [[Category:Functions: Eric's Mission Framework]] |
Latest revision as of 13:26, 26 March 2022
Description
- Description:
This function creates a spawnpoint system similar to Squad's rally points. It must be run locally (eg. from initPlayerLocal.sqf).
- Execution:
call
- Groups:
Gameplay: Eric's Mission Framework
Syntax
- Syntax:
[unit, cooldown, object] call emf_gameplay_fnc_rallyPoint
- Parameters:
unit:
- Object - Unit to apply to.
- Array - Units to apply to.
- String - role to apply to.
cooldown: Number - (Optional) The cooldown between rally placements.[Default: 10]
object: String - (Optional) classname of the object to use.[Default: "Misc_backpackheap_EP1"]
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
[player, 5] call emf_gameplay_fnc_rallyPoint;
- Example 2:
["SL", 5, "Vysilacka"] call emf_gameplay_fnc_rallyPoint;
- Example 3:
[[Unit1, Unit2, Unit3], 15] call emf_gameplay_fnc_rallyPoint;
Additional Information
- See also:
Notes