| Blockland Forums > Modification Help |
| Player Click Script |
| << < (2/2) |
| Fatcorny:
--- Quote from: Julius The 1st on December 25, 2010, 07:54:17 AM ---Use DrenDran's tag script. --- End quote --- I've checked. It totally garshnipped the animation, function, and action of activating. Here's the code that broke the clicking. --- Code: ---package (Clicking); { function Player::activateStuff(%player) //when a player is clicked { Parent::activateStuff(%player); //do the normal stuff first %clicked = %target.client; %clicker = %player.client; %status = (%clicker.isSuperAdmin + %clicker.isAdmin); if (!%status >= $killswit) { messageClient('%clicker',"\c4You are not authorized to perform this action."); } else { clickKill(%target, %clicker); } } }; --- End code --- |
| howtoshotbillwetellyou:
or, like truce said?.. --- Code: --- package stuff { function armor::onTrigger(%datablock,%player,%slot,%io) { parent::onTrigger(%datablock,%player,%slot,%io); //call the original functions function // 0 Fire // 1 Jump // 2 idk? // 3 Crouch // 4 Jet %client = %player.client; //if we need the player's client for some reason %EyeVector = %player.getEyeVector(); %EyePoint = %player.getEyePoint(); %Range = 2; //rangetostoptheraycast(id say set at 2 or 3) %RangeScale = VectorScale(%EyeVector, %Range); %RangeEnd = VectorAdd(%EyePoint, %RangeScale); %raycast = containerRayCast(%eyePoint,%RangeEnd,$TypeMasks::PlayerObjectType, %player); if(isObject(%rayCast.getId()) && %raycast.getId().getClassname() $= "Player") { //dostuff } } };activatePackage(stuff); --- End code --- |
| Navigation |
| Message Index |
| Previous page |