Things to install...
- Skyrim (LE)
- Skyrim (VR)
- Skyrim AE with Creation Club content
- Skyrim AE without Creation Club content
event OnEffectStart(Actor target, Actor caster) | |
Actor player = Game.GetPlayer() | |
float direction | |
if player.GetAngleZ() > 180 | |
direction = player.GetAngleZ() - 180 | |
else | |
direction = player.GetAngleZ() + 180 | |
endIf |
Actor player = Game.GetPlayer() | |
float direction | |
if player.GetAngleZ() > 180 | |
direction = player.GetAngleZ() - 180 | |
else | |
direction = player.GetAngleZ() + 180 | |
endIf | |
float xOffset = (distanceFromTarget) * -Math.cos(player.GetAngleZ()); |
scriptName GetPapyrusScriptName | |
string function NameOfScript(Anything script) | |
return StringUtil.Substring(script, 1, StringUtil.Find(script, " ") - 1) | |
endFunction |
import { printConsole, Game } from "skyrimPlatform" | |
import { getFormInfo } from "./FormInfo" | |
export default function StartRuntime() { | |
// ESPFE | |
const justDesserts = Game.getFormFromFile(0x801, "JustDesserts.esp") | |
const justDessertsInfo = getFormInfo(justDesserts!) | |
printConsole(JSON.stringify(justDessertsInfo)) | |
// Prints out: {"modName":"JustDesserts.esp","relativeFormId":2049} |
event OnInit() | |
int formId = GetOwningQuest().GetFormID() | |
int modIndex = Math.RightShift(formId, 24) | |
if modIndex == 0xFE | |
int lightModIndex = Math.LogicalAnd(Math.RightShift(formId, 12), 0xFFF) | |
Debug.MessageBox(Game.GetLightModName(lightModIndex)) | |
else | |
Debug.MessageBox(Game.GetModName(modIndex)) | |
endIf | |
endEvent |
require "fileutils" | |
FileUtils.rm_f "move_cc_files.bat" | |
BATCH_FILE = File.open "move_cc_files.bat", "a" | |
def append(line) | |
BATCH_FILE.write "#{line}\n" | |
end |
<?xml version='1.0'?> | |
<PapyrusProject xmlns="PapyrusProject.xsd" | |
Flags="TESV_Papyrus_Flags.flg" | |
Game="sse" | |
Output="Scripts" | |
Anonymize="false" | |
Optimize="false" | |
Release="false" | |
Zip="false" | |
Package="false" |
namespace | |
{ | |
class MyCallback : public RE::BSScript::IStackCallbackFunctor | |
{ | |
public: | |
MyCallback() {} | |
void operator()(RE::BSScript::Variable a_result) | |
{ | |
// DO SOMETHING! | |
} |
{ | |
"version": 3, | |
"configurePresets": [ | |
{ | |
"name": "base", | |
"description": "For more information: http://aka.ms/cmakepresetsvs", | |
"hidden": true, | |
"generator": "Ninja", | |
"binaryDir": "${sourceDir}/out/build/${presetName}", | |
"installDir": "${sourceDir}/out/install/${presetName}", |