Page 1 of 1

Passwords

PostPosted: Thu Aug 23, 2007 4:44 am
by arcreamer
hey guys im trying to make a password so that u can only get past a door if you enter the password so itryed using a key down even and typed just some word and when i go into my game i dont even have to type the whole word... when i type the first letter the door dissappears... how do i make it so that u have to type the ENTIRE word for the door to open?

PostPosted: Thu Aug 23, 2007 2:22 pm
by motorollin
Add event -> Key Down -> Keys: P A S S W O R D -> Keys must be pressed in order -> Script -> Code to open the door

PostPosted: Thu Aug 23, 2007 2:38 pm
by arcreamer
so i press PASSWORD then i say in script.. " DestroyActor(door);"

or do i have to make more code?

PS: that little destroy actor i wrote isnt real code i was just giving an example.

PostPosted: Thu Aug 23, 2007 2:43 pm
by arcreamer
yeah i just tryed that with a keydown password and a script saying destroy wall and when i pressed P it destroyed it instead of the whole word..

PostPosted: Thu Aug 23, 2007 2:44 pm
by arcreamer
ooooh nvm i had to change it to all keys pressed in order... Thanks man!