GetLastPerceptionSeen()
「目視」で知覚した最後のObjectを決定します。
int GetLastPerceptionSeen();
Description
これはObjectを「目視」で知覚したかどうかを決定するために、OnPerceptionスクリプトで使用します。
Objectを「目視」で知覚した場合TRUEを、そうでなければFALSEを返します。
Version
1.29
Example
// 目視した敵を攻撃するOnPerception用スクリプト
void main()
{
object oNoticed = GetLastPerceived();
if(GetIsObjectValid(oNoticed))
{
if (GetLastPerceptionSeen() && GetIsEnemy(oNoticed))
{
ClearAllActions();
ActionAttack(oNoticed);
}
}
}
See Also
| functions: | GetCanSeePC |
| categories: | Perception Functions |
author: Tom Cassiotis, editor: Charles Feduke, additional contributor(s): Alex Meduna, JP team: Rainie
Send comments on this topic.