Jump to content

WANTED -Script


ScreaminSkullsTeam

Recommended Posts

Here you go!

 

Script type: Object

 

Scriptname AutoClosingDoor

float doorTimer
short closeDoor

Begin GameMode
if closeDoor == 1
	if doorTimer > 0
		set doorTimer to doorTimer - getSecondsPassed
	else
	;close the door
		Activate
	; Lock
		set closeDoor to 0
	endif
endif	
End

Begin OnActivate
Activate
if IsActionRef Player == 0   ;if it only works for NPCs remove this .....
	set doorTimer to 5
	set closeDoor to 1
endif									;...and this
End

 

This should work.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...