Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.PatrolPoint


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
//=============================================================================
// PatrolPoint.
//=============================================================================
class PatrolPoint expands NavigationPoint;

#exec Texture Import File=Textures\Pathnode.pcx Name=S_Patrol Mips=Off Flags=2

var() name Nextpatrol; //next point to go to
var() float pausetime; //how long to pause here
var  vector lookdir; //direction to look while stopped
var() name PatrolAnim;
var() sound PatrolSound;
var() byte numAnims;
var int AnimCount;
var PatrolPoint NextPatrolPoint;


function PreBeginPlay()
{
    if (pausetime > 0.0)
        lookdir = 200 * vector(Rotation);

    //find the patrol point with the tag specified by Nextpatrol
    foreach AllActors(class 'PatrolPoint', NextPatrolPoint, Nextpatrol)
        break; 
    
    Super.PreBeginPlay();
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 12:52:32.000 - Creation time: za 22-4-2006 12:53:46.218 - Created with UnCodeX