12 lines
412 B
Plaintext
12 lines
412 B
Plaintext
|
// -----------------------------------------------------------------------------
|
||
|
// MAIN - Example OnPlayerRest script
|
||
|
// -----------------------------------------------------------------------------
|
||
|
#include "se_inc_pc_loc"
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetLastPCRested();
|
||
|
if(GetLastRestEventType() == REST_EVENTTYPE_REST_STARTED)
|
||
|
SE_SaveLocation(oPC);
|
||
|
ExecuteScript("x2_mod_def_rest", oPC);
|
||
|
}
|