object - player


void SetScriptUnit(int nUnitIndex, unitex uUnit, int bKeepKilled)

Scope: public

Parameters
uUnitIndex - index
uUnit - unit
bKeepKilled - if true then killed unit references are not removed, if false then function GetScriptUnit returns null when uUnit will be killed (default for first SetScriptUnit fuction).

Return values
none

Description
Sets pointer unit in common area at the specified index. it is useful to establish comunication comunication between missions or for example tracing unit (see LC campaign and fang)

See also