Blockland Forums > Modification Help
Making projectiles do no damage to bots.
<< < (2/4) > >>
Deadzone:

--- Quote ----Snip-
I think this would work.

--- End quote ---

Doesn't seem to be working for me, maybe I'm placing it wrong?

I placed it randomly in the weapon that I'm referring to.

Nexus:

--- Quote from: Deadzone on February 02, 2011, 02:11:52 PM ---Doesn't seem to be working for me, maybe I'm placing it wrong?



--- End quote ---

Are you getting a syntax error? I didn't test this at all, but it is short and not too complicated.
What does the console say when it executes the file? What does it say when you attack a bot?
Kalphiter:

--- Quote from: takato14 on February 01, 2011, 10:21:17 PM ---Dont hold me to anything, because Im not 100% sure, but I dont think there is a way to differentiate between an actual client's player object and that of a bot.

--- End quote ---
There is, now go away.
Deadzone:

--- Quote from: Nexus on February 02, 2011, 02:18:20 PM ---What does the console say when it executes the file? What does it say when you attack a bot?

--- End quote ---

It doesn't say anything.
Amade:

--- Code: ---function YOURPROJECTILE::damage(%this, %obj, %col, %fade, %pos, %normal)
{
if(%obj.getClassName() $= "AIplayer")
{
return;
}
return parent::damage(%this, %obj, %col, %fade, %pos, %normal);
}
--- End code ---
Be aware, however, that this apply to all bots, including tank turrets, cannons, and horses.
Navigation
Message Index
Next page
Previous page

Go to full version