RoT2_PRC8/_module/nss/0_door_limit.nss

16 lines
276 B
Plaintext
Raw Permalink Normal View History

2023-09-25 18:13:22 -04:00
void main() {
object oClicker = GetClickingObject();
object oTarget = GetTransitionTarget( OBJECT_SELF );
location lLoc = GetLocation( oTarget );
if ((GetHitDice(oClicker) >= 15) && (GetHitDice(oClicker) <= 15)) {
AssignCommand( oClicker, JumpToLocation( lLoc ) );
}
}