Difference between revisions of "Inter-mod Communication"
Jump to navigation
Jump to search
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" | Form newCompanionForm = Game.GetFormFromFile(0x00015A4F, "SpecialCompanion.esp") | ||
Actor newCompanion = newCompanionForm as Actor | Actor newCompanion = newCompanionForm as Actor | ||
if newCompanion | if newCompanion |