Author Topic: Shark Holes - Cool Shark?  (Read 3208 times)

Code: [Select]
function delaySharkCheck(%obj)
{
if(isObject(%obj))
{
%obj.setNodeColor("helmet","0.2 0.2 0.2 1");
%obj.setNodeColor("visor", "0.2 0.2 0.2 1");
%obj.unHideNode(helmet);
%obj.unHideNode(visor);
%obj.name = "Cool Shark";

%obj.hat =  "1";
%obj.accent =  "1";
}
}

just remove the random part like so

just remove the random part like so
The Lord Tony gave us an easier way;
Or just set the regular shark name to Cool Shark on bot spawn set name.


just remove the random part like so
Or don't.

Code: [Select]
(!getRandom(0,50) || %obj.name $= "Cool Shark")
|| is or.

If it's 0 in a number between 0 and 50 (yes, this means it's 1 in 51 odds), OR, if you just name it Cool Shark.