Thread: onwall and such
View Single Post
  #13  
Old 05-10-2006, 02:32 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by ApothiX
That is pretty much exactly what I said, except you tried to add the 'players/npcs' thing, but left something out. If it is a no playerkilling zone (or the noplayersonwall() function is called, players are not counted as blocking.)


It's not redundancy. You are not doing double comparisons. That is the exact same thing as if you leave it out.
yea, noplayersonwall() will make players not detected by onwall.
while playersonwall() will reverse that.
using a no PK zone will imply noplayersonwall, but I haven't gone as far to see if calling playersonwall() would reverse that, and I don't use onwall anymore, but a function I scripted that detects tiletypes, npcs, and players on different cases.

And yea, it is redundancy.
You already get a return value of true, then you see if it is equal to true.
Otherwise you get a return value of false and you see if it is equal to true, and because false != true, it returns false. It doesn't really matter if you say ==true, but it's still redundant.