Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SKSEScaleform_GetForm : public GFxFunctionHandler
- {
- public:
- virtual void Invoke(Args* args)
- {
- ASSERT(args->numArgs >= 1);
- double formid = args->args[0].GetNumber();
- #if _DEBUG
- _MESSAGE("scaleform: GetForm (%X)", formid);
- #endif
- args->result->SetNull();
- TESForm* form = LookupFormByID((UInt32)formid);
- if(form)
- {
- args->movie->CreateObject(args->result);
- RegisterNumber(args->result, "formType", (double)form->GetFormType());
- RegisterNumber(args->result, "formId", (double)form->formID);
- #if _DEBUG
- _MESSAGE("Result: (%X) type (%d)", args->result, args->result->GetType());
- #endif
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment