Editing Talk:Extending Scripts (Papyrus)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 23: Line 23:


For example, let's say you have the example above, your Disable function will not be called unless you explicitly cast the object as that type in a call to disable.
For example, let's say you have the example above, your Disable function will not be called unless you explicitly cast the object as that type in a call to disable.
If instead you remove Const, when the native Disable function is called, it will use your override version as expected. If a DisableCheck object was among those, the overridden version of Disable() will be called. As long as DisableCheck is not a Const type. Notes from Kinggath: [[User:Scrivener07|Scrivener07]]([[User talk:Scrivener07|talk]]) 2018-07-05T01:06:38 (EDT)
If instead you remove Const, when the native Disable function is called, it will use your override version as expected. If a DisableCheck object was among those, the overridden version of Disable() will be called. As long as DisableCheck is not a Const type. [[User:Scrivener07|Scrivener07]] Notes from Kinggath:([[User talk:Scrivener07|talk]]) 2018-07-05T01:06:38 (EDT)

Please note that all contributions to the Fallout4 CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see FalloutCK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)
Return to "Extending Scripts (Papyrus)" page.