PDA

View Full Version : Syntax error again... (Man I fail at scripting)


Canderis
06-28-2009, 06:51 PM
void main()
{
object oFollow = GetObjectByTag("p_carth")
ActionForceFollowObject(object oFollow, float fFollowDistance=3.0f);

}
I get the error at ActionForceFollow

This is for K1

DarthStoney
06-28-2009, 07:16 PM
try this one it compiles
void main()
{
object oFollow = GetObjectByTag("p_carth");
ActionForceFollowObject(oFollow,3.0f);

}

Canderis
06-28-2009, 07:21 PM
Works! Thanks! Lets see if it works ingame...

DarthNandis
06-28-2009, 08:28 PM
P.S.: It only changed the ";"! Never forget the ";" hehe

Canderis
06-28-2009, 08:31 PM
:ugh: Duha! I am so unobservant!