mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
18 lines
337 B
Python
18 lines
337 B
Python
import sys
|
|
|
|
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
|
|
|