Author Topic: Can a Playertype Force a Specific Appearance on to the Player?  (Read 2585 times)

serverCmdUseTool

Clients send slot numbers, like, 0-5 (Or more than 5)

I didn't make that though. I don't know why it's there or what it does. Is it necessary for the script?

Code: [Select]
package SprintPlayer
{
function Armor::onTrigger(%data,%player,%slot,%io)
{
if(%slot == 4)
{
if(%io && %data.getName() $= "PlayerSprint")
{
%player.changeDatablock(PlayerSprintActive);
%tool = %player.currTool;
servercmdunusetool(%player.client);
%player.currTool = %tool;
} else if(!%io && %data.getName() $= "PlayerSprintActive")
{
%player.changeDatablock(PlayerSprint);
servercmduseTool(%player.client,%player.currTool);
}
}
Parent::onTrigger(%data,%player,%slot,%io);
}
function Player::mountImage(%player,%image,%slot)
{
if(%player.getDatablock().getName() $= "PlayerSprintActive" && %slot == 0)
{
return;
}
Parent::mountImage(%player,%image,%slot);
}
function ServerCmdUseTool(%client,%slot)
{
if(isObject(%player = %client.player))
{
if(%player.getDatablock().getName() $= "PlayerSprintActive")
{
%player.currTool = %slot;
return;
}
}
Parent::serverCmdUseTool(%client,%slot);
}
};
activatePackage(SprintPlayer);

this is what it is in the original sprinting player i modified

He was wrong. It's player.setNodeColor("NODE_NAME", "R G B A");

well gee i was only listening to what port said, and he said the first argument was the node_name, and the second was the colorset index (i think)

agh i'm a half-baked scripter, i have to solve a bunch of errors when making simple scripts so i don't think i'm cut out for this anymore :(

well gee i was only listening to what port said, and he said the first argument was the node_name, and the second was the colorset index (i think)

agh i'm a half-baked scripter, i have to solve a bunch of errors when making simple scripts so i don't think i'm cut out for this anymore :(

nooo purplemetro :CCC