mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-07-28 22:15:53 -04:00
Added new common methods to IntentFactory as well as suitable JavaDoc for all methods Renamed "objManager" function variable in command scripts execute function to galManager (GalacticManager instance)
18 lines
325 B
JavaScript
18 lines
325 B
JavaScript
var execute = function(galManager, player, target, args) {
|
|
var ghost = player.getPlayerObject();
|
|
var waypoint;
|
|
|
|
if(ghost == null || target == null) {
|
|
return;
|
|
}
|
|
|
|
waypoint = ghost.getWaypoint(target.getObjectId());
|
|
|
|
if(waypoint == null) {
|
|
return;
|
|
}
|
|
|
|
waypoint.setName(args);
|
|
|
|
ghost.updateWaypoint(waypoint);
|
|
}; |