View Single Post
Old 03-08-2012, 12:06 PM   #141
UltimateHK47
Forumite
 
UltimateHK47's Avatar
 
Join Date: Nov 2011
Location: In a Galaxy, far far away...
Posts: 500
Current Game: Kotor 1
Quote:
Originally Posted by Marius Fett View Post
You haven't declared your variables.

For example, oPC on it's own doesn't mean anything. If you do this:

Code:
void main()
	{
		object oPC = GetFirstPC();
		
		CreateItemOnObject("g_a_jediscout", oPC);
		CreateItemOnObject("g_w_lghtsbr10", oPC);
	}
It should work fine. Same with oTarget, you haven't said what oTarget is.
void main()
{

object oTarget = GetFirstNPC();
SetLocalBoolean(oTarget, SW_PLOT_HAS_TALKED_TO, FALSE);

}

This is me taking a stab at it

The erorrs are the same, but replacing oTarget with undeclared identifyer GetFirstNPC same undecalerd with SW_PLOT_HAS_TALKED_TO and the same error with SteLocalBoolean. The other script works fine thanks.


http://www.lucasforums.com/showthrea...12#post2807812
The Turret Arcade 1.2 ^^


USED TO BE KNOWN AS DARTH JANGO/WEASLEY
UltimateHK47 is offline   you may: quote & reply,