Initiate resting via command

If you have a module that you'd like comments on or would like to know how to create your very own module, post here

Moderator: Moderator

Post Reply
Message
Author
Charidan
Higher
Posts: 64
Joined: Wed Jul 22, 2015 8:12 pm

Initiate resting via command

#1 Post by Charidan »

I'm trying to have my mod force the player to rest as part of a larger action. What function do I call to initiate resting? The player has several rest-related functions, as does the PlayerRest class, but I can't find one that initiates the resting process.

EDIT: Nevermind, I finally opened the core PlayerRest instead of a modded version, and there is a function called restInit().
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Initiate resting via command

#2 Post by HousePet »

Why is this in the T2 modules forum?
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply