Game Development Community

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
Page«First 1 2 Next»
#21
02/07/2016 (1:09 pm)
So I have changed the %this to %obj and added a echo to see if the function is getting called. I need the function get called but there is no decal getting spawned.
Page«First 1 2 Next»