SetPlayerQuestMarker
A player’s own marker for one objective.
A point {x =, y =, z =}, an entity’s id (or {entity = id}), {player = pid} for a player’s body, false for no marker,
nil for the definition’s marker again. Other players keep theirs.
Syntax
Section titled “Syntax”SetPlayerQuestMarker(pid, id, objective [, target])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number|string | the quest’s id or key |
objective |
number | the objective’s number, from 1 |
target |
table | the marker (above) (optional) |
Returns
Section titled “Returns”boolean, string - accepted; the reason when not
Example
Section titled “Example”-- each player is sent to their own contactSetPlayerQuestMarker(pid, ERRAND, 2, {entity = contacts[pid]})See also
Section titled “See also”CreateQuest · SetPlayerQuestObjective · the Quests group of the index
