GetWallBetween
This command returns True if there is a wall between 2 userid's... Otherwise, it'll return False.
The correct syntax is:
wcs.Command(<userid>).GetWallBetween(<userid2>, <callback-function>, [Optional: additional parameters])
- Userid - The first userid to test
- Userid2 - The second userid to test
- Callback-Function - The function that will be run when the command has activated.
- Optional: additonal parameters - Pass any other parameters you want to pass to the other method here.
Example:
def player_say(ev):
if ev["text"] == "wall":
for player in es.getUseridList():
wcs.Command(ev['userid']).GetWallBetween(player, isWall, player)
def isWall(userid, wall, player):
if wall:
es.tell(userid, '#green','There is a wall between you and player ' + es.getplayername(player) )
else:
es.tell(userid, '#green','There is no walls between you and player ' + es.getplayername(player) )
Comments (0)
You don't have permission to comment on this page.