Blockland Forums > Suggestions & Requests
Auto Aiming Cannon Turrets
MARBLE MAN:
soo.... I was looking at the bot events source, and i found this:
--- Code: ---function AIPlayer::lookAtPlayers(%this)
{
if(isObject(%this))
{
%dist = 1000;
for(%i = 0; %i < clientGroup.getCount(); %i++)
{
if(isObject(%player = clientGroup.getObject(%i).player))
{
if((%distB = vectorDist(%this.getPosition(), %player.getPosition())) < %dist)
{
%closestplayer = %player;
%dist = %distB;
}
}
}
if(isObject(%closestplayer))
{
%this.setAimObject(%closestplayer);
}
%this.playerLookLoop = %this.schedule(5000, lookAtPlayers);
}
}
--- End code ---
I thought - !!!Auto Aiming HMGs on an Aircraft Carrier!!!
So. Could someone put this into a vehicle's turret and have it work?!
Thank you.
-edit- I would also like "the penetrator" from Saints Row 3 (just for lolz)
Blocki:
Forget the Aircraft carrier
BUT I WANT THIS
I WANT
/support
MARBLE MAN:
--- Quote from: Blocki on May 14, 2012, 01:51:30 PM ---Forget the Aircraft carrier
BUT I WANT THIS
I WANT
/support
--- End quote ---
you can already do this with bots...
I just wanted it on vehicles
Blocki:
--- Quote from: MARBLE MAN on May 14, 2012, 05:02:32 PM ---you can already do this with bots...
I just wanted it on vehicles
--- End quote ---
I never talked about bots
I want something like turrets
Duhman115:
--- Quote from: Blocki on May 15, 2012, 12:07:20 PM ---I never talked about bots
I want something like turrets
--- End quote ---
Put a bot in a turret