Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10501 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 30, 2007, 3:59:55 PM (18 years ago)
Author:
snellen
Message:

added method hide and unhide as scriptable to npc, small patch by lieni in billboard

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/effects/billboard.cc

    r10491 r10501  
    137137  const Camera* camera = man->getCurrentCam(); //!< @todo MUST be different
    138138  Vector cameraPos = camera->getAbsCoor();
    139   Vector cameraTargetPos = camera->getAbsCoor();
     139  Vector cameraTargetPos = camera->getTarget()->getAbsCoor();
    140140  Vector view = cameraTargetPos - cameraPos;
    141141  Vector up = Vector(0, 1, 0);
  • trunk/src/world_entities/npcs/npc.cc

    r10499 r10501  
    6565                        ->addMethod("fire", Executor0<NPC, lua_State*>(&NPC::fire))
    6666                        ->addMethod("pause", Executor1<WorldEntity, lua_State*, bool>(&WorldEntity::pauseTrack))
     67                        ->addMethod("hide", Executor0<WorldEntity, lua_State*>(&WorldEntity::hide))
     68                        ->addMethod("unhide", Executor0<WorldEntity, lua_State*>(&WorldEntity::unhide))
    6769                       );
    6870
Note: See TracChangeset for help on using the changeset viewer.