Files
NGECore2/scripts/commands/object.py
T
2013-07-07 21:07:06 +02:00

20 lines
402 B
Python

import sys
from resources.objects import SWGObject
from main import NGECore
def setup():
return
def run(core, actor, target, commandString):
if commandString.startswith('checklos') and target:
print 'test'
los = core.simulationService.checkLineOfSight(actor, target)
if not los:
actor.sendSystemMessage('-Cant see target-', 2)
else:
actor.sendSystemMessage('LOS ok', 2)
return