-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added actorSit actorGetUp actorRaycast calculateAnticipatedLocation #2016
base: main
Are you sure you want to change the base?
added actorSit actorGetUp actorRaycast calculateAnticipatedLocation #2016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall seems good, thank you!
Could you please a 1-line changelog entry like sp-***.md
in this folder:
https://github.com/skyrim-multiplayer/skymp/tree/main/docs/release/dev
Also please in this file add the following lines it the end. Then compile and commit result (compile will run TS codegen). This will make you fuction callable from TypeScript.
export declare function actorSit(formId: number): void;
export declare function actorGetUp(actorId: number): void;
export declare function actorRaycast(actorId: number, r: number): number[];
export declare function calculateAnticipatedLocation(actorId: number): number[];
a->actorState1.sitSleepState = RE::SIT_SLEEP_STATE::kIsSitting; | ||
} | ||
|
||
void getUp(RE::Actor* a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's meet skymp naming guidelines
getUp -> GetUp
sit -> Sit
etc
{ | ||
auto havokWorldScale = RE::bhkWorld::GetWorldScale(); | ||
RE::bhkPickData pick_data; | ||
RE::NiPoint3 ray_start, ray_end; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ray_start -> rayStart, etc
return point2js(ans); | ||
} | ||
|
||
void Register(JsValue& exports) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to call this function here
No description provided.