15 lines
435 B
Plaintext
15 lines
435 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oUser =GetLastUsedBy();
|
||
|
//Gets tag of object and adds _WP to it
|
||
|
object oToJumpTo=GetWaypointByTag(GetTag(OBJECT_SELF)+"_WP");
|
||
|
location lLocation=GetLocation(oToJumpTo);
|
||
|
//creates darkness on player
|
||
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,SupernaturalEffect(EffectDarkness()),oUser,10.0);
|
||
|
//teleport player to location
|
||
|
AssignCommand(oUser, ActionJumpToLocation(lLocation));
|
||
|
|
||
|
}
|
||
|
|