View Single Post
Old 01-12-2012, 03:03 PM   #46
Qui-Gon Glenn
Necessary Roughneck
 
Qui-Gon Glenn's Avatar
 
Join Date: May 2007
Location: Thessia
Posts: 1,465
Current Game: ME3MP, Arkham Origins
Folder extraordinaire Helpful! Forum Veteran Veteran Modder 
Great post JCarter426!!

At first reading, I was wishing there were a link to a tutorial somewhere... then realized I was reading one! Nicely done

I have a small question about this though:
Code:
void main() {

	object oNPC = GetObjectByTag("NPC_tag", 0);
	int iNPC = NPC_INTEGER;   <-- ???

AddAvailableNPCByObject(iNPC, oNPC);
SetNPCSelectability(iNPC, 1);

}
Where does the value NPC_INTEGER come from? It probably is an integer constant from nwscript, so I am wondering what object it is being obtained from, and how... I would think it would need to be something along the lines of
Code:
int iNPC = GetSomeInfoFromObject(oNPC); This function compiles for me all the time ;)
I believe that what you posted is correct, so really I am asking for further enlightenment


Want to play a game of ME3MP?
Qui-Gon_Glenn on the software of which we shall not name.... add me and the enemy shall fall in chunks of crimson salsa

Last edited by Qui-Gon Glenn; 01-12-2012 at 03:08 PM.
Qui-Gon Glenn is offline   you may: quote & reply,