mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-07-31 01:15:55 -04:00
31 lines
679 B
Plaintext
31 lines
679 B
Plaintext
trigger OnAttach()
|
|
{
|
|
debugSpeakMsg( self, "attached. Loitering: " );
|
|
|
|
const location anchorLocation = getLocation(self);
|
|
const float minDistance = 10.0f;
|
|
const float maxDistance = 30.0f;
|
|
const float minDelay = 3.0f;
|
|
const float maxDelay = 8.0f;
|
|
|
|
loiterLocation(self, anchorLocation, minDistance, maxDistance, minDelay, maxDelay);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnLoiterMoving()
|
|
{
|
|
debugSpeakMsg( self, "loiter moving" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnLoiterWaypoint()
|
|
{
|
|
debugSpeakMsg( self, "loiter waypoint" );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnLoiterWaiting(modifiable_float time)
|
|
{
|
|
debugSpeakMsg( self, "loiter waiting" );
|
|
return SCRIPT_CONTINUE;
|
|
} |