Game Development Community

How do you call functions in torque scrip (.cs)

by Nic Biondi · in Technical Issues · 01/28/2004 (4:40 pm) · 2 replies

If I make a function in script, can i call it directly? What is the syntax for calling a function made in script.

#1
01/28/2004 (4:47 pm)
All right lets say ur functin is like this

function hi()
{
echo("hi");
}

now that whoud just echo hi in the consal and to call that function in script you whoud just go

hi();

pretty easy :D hope that helped
#2
01/28/2004 (5:50 pm)
Hahah yeah sure looks it Kc, thanx for the tip