Author Topic: Help with detecting Playertouch  (Read 741 times)

I'm trying to modify Support_Prepper (I'm not going to release it, it is for private use) But I am a horrible noob at Torque but I just want to make it so when Prepper/Renderman? Touches you it subtracts 10 health, but I don't know the commands to put in the script.

http://forum.blockland.us/index.php?topic=174563.0

Package it like I did. As for touching, that's probably not possible. The face is a floating projectile that starts to fade instantly. Walking into it probably wouldn't do anything. Then again, I haven't done much serverside coding in years, since everyone hated anything I made.

http://forum.blockland.us/index.php?topic=174563.0

Package it like I did. As for touching, that's probably not possible. The face is a floating projectile that starts to fade instantly. Walking into it probably wouldn't do anything. Then again, I haven't done much serverside coding in years, since everyone hated anything I made.
I don't know if default Brick_halloween or support_Prepper triggers a bot version of prepper that centerprints a message but I want you to be damaged when you touch that bot. II love italics

Oh wait, you're modifying mine. I'm stupid. Anyway, not sure you could easily trigger damage.

How does Amade's bot events do it? What function does it call when you want to run onbottouched player addhealth -*

It's doing a default event/command that isn't part of his Add-On.

armor::onCollision is being packaged. You could just use yourDatablock::onCollision. The arguments are %this, %obj, %col, %norm, %speed

Might as well have just spoke Japanese, O.o I appreciate the help but I don't understand any of that, I got lost at arguments.

Might as well have just spoke Japanese, O.o I appreciate the help but I don't understand any of that, I got lost at arguments.
Code: [Select]
package PrepperCollision
{
function armor::onCollision(%this, %obj, %col, %norm, %speed)
{
//do some stuff
//%obj is of datablock %this, and collided with %col at %speed (direction %norm)
parent::onCollision(%this, %obj, %col, %norm, %speed);
}
};