Making a Mine
by Rayanaga · in Technical Issues · 03/17/2008 (5:15 pm) · 2 replies
Okay, I am a novice when it comes to Torquescript and I need help in creating a script.
I have a model called mine.dts and i need to to program something so that when the player walks into the radius of the mine, it blows up and deals damage.
Would it be something like:
function mine::onCollision {
//damages player
//sestorys itself
}
the datablock works fine and everything.
I have a model called mine.dts and i need to to program something so that when the player walks into the radius of the mine, it blows up and deals damage.
Would it be something like:
function mine::onCollision {
//damages player
//sestorys itself
}
the datablock works fine and everything.
Torque Owner Adam Beer
Ignition Games Inc.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8154