lfnetwork.com mark read register faq members calendar

Thread: Syntax error again... (Man I fail at scripting)
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-28-2009, 05:51 PM   #1
Canderis
Mercenary
 
Canderis's Avatar
 
Join Date: Jun 2008
Location: Unknown
Posts: 2,504
Current Game: Skyrim
Veteran Modder Helpful! 
Syntax error again... (Man I fail at scripting)

Code:
void main()
{
object oFollow = GetObjectByTag("p_carth")
ActionForceFollowObject(object oFollow, float fFollowDistance=3.0f);

}
I get the error at ActionForceFollow

This is for K1




Canderis is offline   you may: quote & reply,
Old 06-28-2009, 06:16 PM   #2
DarthStoney
To bed. I'm old and tired
 
DarthStoney's Avatar
 
Join Date: Apr 2006
Posts: 506
Contest winner - Modding Veteran Modder Helpful! 
try this one it compiles
Code:
void main()
{
object oFollow = GetObjectByTag("p_carth");
ActionForceFollowObject(oFollow,3.0f);

}

DarthStoney is offline   you may: quote & reply,
Old 06-28-2009, 06:21 PM   #3
Canderis
Mercenary
 
Canderis's Avatar
 
Join Date: Jun 2008
Location: Unknown
Posts: 2,504
Current Game: Skyrim
Veteran Modder Helpful! 
Works! Thanks! Lets see if it works ingame...




Canderis is offline   you may: quote & reply,
Old 06-28-2009, 07:28 PM   #4
DarthNandis
Rookie
 
DarthNandis's Avatar
 
Join Date: May 2008
Location: Blumenau - Brazil
Posts: 78
Current Game: A lot!
P.S.: It only changed the ";"! Never forget the ";" hehe
DarthNandis is offline   you may: quote & reply,
Old 06-28-2009, 07:31 PM   #5
Canderis
Mercenary
 
Canderis's Avatar
 
Join Date: Jun 2008
Location: Unknown
Posts: 2,504
Current Game: Skyrim
Veteran Modder Helpful! 
Duha! I am so unobservant!




Canderis is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Syntax error again... (Man I fail at scripting)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:01 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.