numMountPoints = 1; mountThread[5] = "armreadyboth"; mountNode[0] = 5;};
packageAllHug{ function Armor::onMount(%this,%obj,%col,%slot) { Parent::onMount(%this,%obj,%col,%slot); %obj.playthread(hug); //or whatever the hug animation is }};activatePackage(AllHug);[\code]
Loading Add-On: Script_AllHug (CRC:1231078410)Add-Ons/Script_AllHug/server.cs Line: 2 - Syntax error.>>> Some error context, with ## on sides of error halt:ackageAllHug{#### function Armor::onMount(%this,%obj,%col,%slot) { Parent::onMount(%this,%obj,%col,%slot); %obj.playthread(m_armreadyboth); //or whatever the hug animation is }};activatePackage(AllHug);>>> Error report complete.ADD-ON "Script_AllHug" CONTAINS SYNTAX ERRORS
package AllHug{ function Armor::onMount(%this,%obj,%col,%slot) { Parent::onMount(%this,%obj,%col,%slot); %obj.playthread(m_armreadyboth); //or whatever the hug animation is }};activatePackage(AllHug);
Just me or did you do the wrong arguments on the playThread() function? Isn't there two arguments- don't remember them exactly atm though
package AllHug{ function Armor::onMount(%this,%player,%obj,%a,%b,%c,%d,%e,%f) { Parent::onMount(%this,%player,%obj,%a,%b,%c,%d,%e,%f); servercmdhug(%player.client); }};activatepackage(AllHug);