How to Spawn a decal with script - info
by Steve Acaster · in Torque 3D Professional · 11/25/2010 (3:30 pm) · 21 replies
I've got a basic hit-prediction scripted and whilst I can spawn applicable damage, explosion, etc at the end of the raycast, I've not worked out how to slap a decal at the position.
Anyone any ideas on spawning a decal with script? I'd hoped it would be a simple %decal = new decalData, datablock =, position=, etc but apparently it isn't ... or at least nothing happens and nothing in the console.
[edit]
Answer below!
Moved to useful Threads
Anyone any ideas on spawning a decal with script? I'd hoped it would be a simple %decal = new decalData, datablock =, position=, etc but apparently it isn't ... or at least nothing happens and nothing in the console.
[edit]
Answer below!
Moved to useful Threads
About the author
One Bloke ... In His Bedroom ... Making Indie Games ...
Torque Owner Stephen
GearedMind Studio