Difference between revisions of "Osiris/API/CharacterAppearOnTrailOutOfSightToObject"
From Divinity Engine Wiki
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
* call '''CharacterAppearOnTrailOutOfSightToObject'''(''(CHARACTERGUID)'''''_Character''', ''(GUIDSTRING)'''''_Target''', ''(GUIDSTRING)'''''_Object''', ''(INTEGER)'''''_PlaySpawn''', ''(STRING)'''''_Event''') | * call '''CharacterAppearOnTrailOutOfSightToObject'''(''(CHARACTERGUID)'''''_Character''', ''(GUIDSTRING)'''''_Target''', ''(GUIDSTRING)'''''_Object''', ''(INTEGER)'''''_PlaySpawn''', ''(STRING)'''''_Event''') | ||
===== Description ===== | ===== Description ===== | ||
− | Same as [[Osiris/API/ | + | Same as [[Osiris/API/CharacterAppearOutOfSightToObject|CharacterAppearOutOfSightToObject]], but '''_Character''' will select a position occupied by '''_Target''' over the last few seconds (so that if you then make '''_Character''' walk to '''_Target''' afterwards, it seems as if '''_Character''' was following '''_Target'''). It will select the furthest cached position of '''_Target''' in the direction '''_Object'''. |
===== Notes ===== | ===== Notes ===== | ||
− | * / | + | * This only works if '''_Target''' is a [[Osiris/API/AddToParty|party member]], as the last positions are not cached for regular NPCs. |
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterAppear|CharacterAppear]] | * [[Osiris/API/CharacterAppear|CharacterAppear]] |
Latest revision as of 10:00, 26 November 2019
Full Definition(s)
- call CharacterAppearOnTrailOutOfSightToObject((CHARACTERGUID)_Character, (GUIDSTRING)_Target, (GUIDSTRING)_Object, (INTEGER)_PlaySpawn, (STRING)_Event)
Description
Same as CharacterAppearOutOfSightToObject, but _Character will select a position occupied by _Target over the last few seconds (so that if you then make _Character walk to _Target afterwards, it seems as if _Character was following _Target). It will select the furthest cached position of _Target in the direction _Object.
Notes
- This only works if _Target is a party member, as the last positions are not cached for regular NPCs.
See Also
- CharacterAppear
- CharacterAppearAt
- CharacterAppearAtCustom
- CharacterAppearAtPosition
- CharacterAppearAtPositionCustom
- CharacterAppearAtPositionOutOfSightTo
- CharacterAppearAtPositionOutOfSightToCustom
- CharacterAppearAtPositionOutOfSightToObject
- CharacterAppearAtPositionOutOfSightToObjectCustom
- CharacterAppearCustom
- CharacterAppearOnTrailOutOfSightTo
- CharacterAppearOnTrailOutOfSightToCustom
- CharacterAppearOnTrailOutOfSightToObjectCustom
- CharacterAppearOutOfSightTo
- CharacterAppearOutOfSightToCustom
- CharacterAppearOutOfSightToObject
- CharacterAppearOutOfSightToObjectCustom
- SetOnStage
- StoryEvent