Author Topic: AIPlayer Shadows & MountedImage  (Read 684 times)

Well, I recently made a Monster system for my roleplay. But for some odd reason when I mount an image to the AIPlayer and set all of the nodes to "0" alpha, the mounted model has invisible gaps in the model where the players body parts are, Example: You can see a hand in the mountedImage.

Also, you can see the AIPlayer shadow.

Are there any fixes that can be applied to this, or a workaround for the matter.

Code: [Select]
datablock ShapeBaseImageData(RPSpider)
{
     shapeFile = "./Shapes/Monster/Spider.dts";
     emap = false;
     mountPoint = $PantsSlot;
     offset = "0 0 -1.8"; // Set the model to the ground based on the Bot PantSlot.
     eyeOffset = "0 0 0";
     rotation = "0 0 0 0 0";
     className = "itemimage";
};

if(%F $= "Spider")
{
%Mob.setNodeColor("ALL","0 0 0 0");
%Mob.mountImage(RPSpider,$PantsSlot);
}

Is $PantsSlot even a mount? What about hiding all the nodes?

Is $PantsSlot even a mount? What about hiding all the nodes?
Yea, I realized that. Well, I fixed the mounting. But you can still see the AIPlayer outline in the model. I'll try the Hiding now.

Edit: Hiding the nodes worked perfectly, thanks.

Now, you wouldn't know how to add a bot to a mini-game would you? All the topics that I've found relating Bots and Mini-games aren't relative, or do not give a good example of how to do so.

« Last Edit: December 21, 2009, 12:04:10 PM by Desolation »

Yea, I really want to test this.

Body nodes aren't supposed to ever be transparent, things break and look weird if they are. You should hide all the nodes instead.

Body nodes aren't supposed to ever be transparent, things break and look weird if they are. You should hide all the nodes instead.
Yea, that's what I ended up doing.

Code: [Select]
%bot.client = new AiConnection();
%bot.client.player = %bot;
%bot.client.minigame = %someminigame;

Why did you make %bot = %bot ?
« Last Edit: December 21, 2009, 10:00:03 PM by Human Reaper »

Huh?
I made the bot's fake client's variable set to the bot's physical object so things in instantRespawn work.

Thank you, it works perfectly now.