What does mean this line?

Post » Tue Jun 19, 2012 11:03 pm

I have found in the script "Import Game",please explain me what is that? Thanks
User avatar
Miranda Taylor
 
Posts: 3406
Joined: Sat Feb 24, 2007 3:39 pm

Post » Wed Jun 20, 2012 2:15 am

This means that functions present in Game script are included in your script and you do not need to write prefixes for functions from that script.

normally you use:

Game.GetPlayer() if you want to reference the player's character

but in script that has Import Game line, you can use just:

GetPlayer()
User avatar
David John Hunter
 
Posts: 3376
Joined: Sun May 13, 2007 8:24 am

Post » Wed Jun 20, 2012 5:36 am

Thanks))
User avatar
Katy Hogben
 
Posts: 3457
Joined: Mon Oct 30, 2006 12:20 am

Post » Tue Jun 19, 2012 8:34 pm

Just to clarify - only functions declared with the http://www.creationkit.com/Function_Reference#Function_Header keyword are affected by http://www.creationkit.com/Script_File_Structure#Imports keyword. Global functions are called on a type, whereas non-global functions are called on an object.

Cipscis
User avatar
Scared humanity
 
Posts: 3470
Joined: Tue Oct 16, 2007 3:41 am


Return to V - Skyrim