| Blockland Forums > General Discussion |
| Weeping Angels - Poll added |
| << < (4/26) > >> |
| John Freeman:
Why why why |
| Perlin Noise:
function AIPlayer::canSeeObject(%this, %object) { %ev = %this.getEyeVector(); %pos = %this.getPosition(); if(!isObject(%object)) return 0; if(isFunction(%object.getClassname(), getEyePoint)) %ep = %object.getEyePoint(); else %ep = %object.getPosition(); %vd = vectorDist(%pos, %ep); if(%vd > 64) return 0; %cast = containerRaycast(%pos, %ep, $TypeMasks::FxBrickObjectType); if(isObject(%cast)) return 0; %adjp = vectorSub(%pos, %ep); %angle = mATan(getWord(%adjp,1), getWord(%adjp,0)); %ea = mATan(getWord(%ev,1), getWord(%ev,0)); %cansee = %ea - %angle; %canSee = mAbs(%canSee); if(%cansee > 3.92689 || %cansee < 2.35629) return 0; return 1; } |
| Nymph:
well, i dont know anything about scripting or whatnot... what is that |
| Silreath:
Ill have logo by Friday. Hey, I have school other than graphic design and blockland. |
| Alphadin:
--- Quote from: Nymph on February 05, 2013, 10:04:17 PM ---well, i dont know anything about scripting or whatnot... what is that --- End quote --- checks to see if it can see an object. |
| Navigation |
| Message Index |
| Next page |
| Previous page |