@name 
@inputs W A S D Active Space Shift
@persist Position On Ang Speed
@trigger all

if(first() | duped()){
runOnTick(1)

holoCreate(1)
holoModel(1,"models/player/police.mdl")
holoAnim(1,4)
holoParent(1,entity())
Ang = 0

Speed = 2
}


if(changed(W) & W | changed(Shift)){
    
if(Shift){
holoAnim(1,3)
}else{
holoAnim(1,6)
}
   
}

if(Shift){
Speed = 3    
}else{
Speed = 1
}


if (W){
holoPos(1,holoEntity(1):pos() + holoEntity(1):forward()*Speed)
On = 0
}elseif(On == 0){
On = 1
holoAnim(1,4)
}

if(A){
Ang+=3  
holoAng(1,ang(0,Ang,0))  
}

if(D){
Ang-=3  
holoAng(1,ang(0,Ang,0))  
}

if(changed(Active) & Active == 0){
holoPos(1,entity():pos()) 
Ang = 0   
}
