• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lever

vagnerz1k

New Member
Joined
Nov 5, 2014
Messages
35
Reaction score
0
Hello everybody
guys can help me with a script that the player pull three levers and remove 4 bars?

tfs 0.3.2
 
Last edited:
Explain it better. If the player pulls de first and the second, nothing happens, and only when he pulls the third lever, the bars are removed, is that it?
 
why not to create just 1 lever? You need to pull 2 levers without effect to pull a third one and bang, remove the bars?
 
Ok, you already may have the scripts but just dont know how to use then. Take a simple lever script that gives player some random storage right? Then, use it for the First lever. for the second one, u need to check if the player has the storage gained at the first lever, if so, he gets ANOTHER storage. for the third lever, you need to check both storages, and if it returns true (player has both storages) it removes the bars, if not, just include the "else" "You dont used the levers correctly"... Got it?
 
guy just put him to pull the levers are pulled open the three if not does not open and no need to check because it will only open if the three are drawn if one is not pulled out will not open
 
Or when lever pulled.. check pos1 x.y.z & pos2 x.y.z .. if id's are 1946, then do remove bars.
All three have same script, just checking the other levers.
If object pulled is 1946, check if bars are still in place, if yes, do nothing, is no, replace bars, and reset/randomize all levers.
 
Back
Top