function zatgunImage::OnCollision(%this, %obj, %col, %fade, %pos, %normal){
if(%col.getClassname() $= "Player"){
%col.client.isStunned = 1;
schedule(10000,0,unstun,%col.client);
}
}
function unstun(%client){
if(isObject(%client)){
%client.isStunned = 0;
}
}
I don't know about the not moving bit, I was going to edit the move functions but they don't have the client variable in them.