I'm making a tool add-on for Blockland, and I need to know a few things to have it work properly.
(You'll all know what it is later when I either beta host it or release it, and you may be able to figure it out based on my questions anyway)
First off, I need to know how to execute trust checks and centerPrint trust errors the way other tools do it.
toolProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal) {
if(%col.getClassName() $= "fxDtsBrick") {
//%good = do a trust check
if(%good) {
//perform tool action (I know what I'm doing over here)
}
else //print trust error
else return;
}
Second, I need to know how to display non-render'd brick wireframes when the tool is mounted.
Third, I need to understand how to make a properly functioning get-a-tool slash command.
I've made code to do this before, but either the function didn't make the player's arm get into the "ready" position, or if I made the function do this, the arm would remain "ready" even if you switched weapons and de-quip'd it.
Thanks for the help... (assuming you post with help anyway)
EDIT: Problems 1 & 3 solved by looking at other code. Thanks Falcondude. XD