FaceNearestPC()

NPCを一番近くの見えているPCの方に向けます

void FaceNearestPC();

Description

NPCを一番近くの見えているPCの方に向けます



Requirements

#include "nw_i0_2q4luskan"

Version

1.22

Example

// 1.24のソースはこの関数用
void FaceNearestPC()
{
    vector vFace = GetPosition(GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN));
    SetFacingPoint(vFace);
}

See Also

categories: Conversation Functions


author: Tom Cassiotis, JP team: Rainie
Send comments on this topic.