Difference between revisions of "Inter-mod Communication"

Jump to navigation Jump to search
No change in size ,  06:18, 4 August 2016
m
→‎How To Get A Form From Another Mod: The arguments in GetGameFromFile were in the wrong order.
imported>LHammonds
m (fixed small typo)
imported>Docclox
m (→‎How To Get A Form From Another Mod: The arguments in GetGameFromFile were in the wrong order.)
Line 40: Line 40:
Example:
Example:
<source lang="papyrus">
<source lang="papyrus">
Form newCompanionForm = Game.GetFormFromFile("SpecialCompanion.esp", 0x00015A4F)
Form newCompanionForm = Game.GetFormFromFile(0x00015A4F, "SpecialCompanion.esp")
Actor newCompanion = newCompanionForm as Actor
Actor newCompanion = newCompanionForm as Actor
if newCompanion
if newCompanion
Anonymous user

Navigation menu