16 lines
428 B
Plaintext
16 lines
428 B
Plaintext
void main()
|
|
{
|
|
object oDarkness = GetLastUsedBy();
|
|
location lRestLocation = GetLocation(oDarkness);
|
|
effect eEffect = EffectVisualEffect(VFX_DUR_DARKNESS);
|
|
effect eEffect1 = EffectVisualEffect(VFX_IMP_SLEEP);
|
|
float fDuration = RoundsToSeconds(21);
|
|
|
|
AssignCommand(oDarkness,ActionRest());
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oDarkness);
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect1, oDarkness);
|
|
|
|
|
|
}
|
|
|