16
Modification Help / Re: Addon help.....
« on: April 14, 2010, 10:24:56 PM »
ahhh... ok let me test
EDIT: it works, thanks bro... lol
EDIT: it works, thanks bro... lol
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
package exp
{
function bowProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
Parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
error(%this);
}
};
activatePackage(exp);Code: [Select]for(%i=700; %i<serverConnection.getCount(); %i++)What if Badspot changes the amount of datablocks? The 700 would no longer be valid.
{
%o=serverConnection.getObject(%i);
$npc=serverConnection.getObject(%i);
if(%o.getDatablock().shapefile !$= 199.shapefile && %o.getClassName() $= "AiPlayer")
{
%npc=%o.getTransform();
if(VectorDist(%npc,%player)<50)
{
$dist=VectorDist(%npc,%player);
$mouseAble=0;
if(vectorDist(%npc,%player)<2.3)
{
$mouseAble=1;
}
addArray();
break;
}
}
else
{
$mouseable=0;
}
}
$loop=schedule(1000,0,"findAi","");
}