28 lines
785 B
Plaintext
28 lines
785 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name: water_trig_enter
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
OnEnter script for water triggers.
|
||
|
|
||
|
If a water bucket is activated while in this
|
||
|
trigger, it will be filled.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Adam Walenga
|
||
|
//:: Created On: September 3rd, 2004
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPlayer = GetEnteringObject();
|
||
|
|
||
|
//If is PC, inform of water source.
|
||
|
if (GetIsPC (oPlayer))
|
||
|
{
|
||
|
SendMessageToPC (oPlayer, "You've entered a water source. Water " +
|
||
|
"buckets may be filled here.");
|
||
|
SetLocalInt (oPlayer, "In_Water_Source", TRUE);
|
||
|
}
|
||
|
}
|