Game Development Community

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.

#1
03/17/2008 (6:11 pm)
There is a resource on this here:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8154
#2
03/18/2008 (7:52 am)
Thanks a lot Adam!