- Timestamp:
- May 24, 2018, 4:42:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_FS18/src/orxonox/scriptablecontroller/scriptable_controller_api.cc
r11999 r12006 9 9 //#include "../modules/objects/collisionshapes/SphereCollisionShape.h" 10 10 #include "graphics/Model.h" 11 #include "worldentities/pawns/ AAAAutonomousDrone.h"11 #include "worldentities/pawns/ScriptableControllerDrone.h" 12 12 13 13 … … 210 210 211 211 212 Identifier *identifier = ClassByString(" AAAAutonomousDrone");212 Identifier *identifier = ClassByString("ScriptableControllerDrone"); 213 213 214 214 … … 277 277 Pawn* pawn = this->controller_->getPawnByID(id); 278 278 //Attach to pawn 279 AAAAutonomousDrone* drone = new AAAAutonomousDrone(pawn->getContext()); // this is neccessary because the projectiles fired need a valid creator for the particlespawner (when colliding against something)280 281 drone->addTemplate(" AAAAutonomousDroneTemplate"); //AAAAutonomousDroneTemplate spaceshipescort279 ScriptableControllerDrone* drone = new ScriptableControllerDrone(pawn->getContext()); // this is neccessary because the projectiles fired need a valid creator for the particlespawner (when colliding against something) 280 281 drone->addTemplate("ScriptableControllerDroneTemplate"); //ScriptableControllerDroneTemplate spaceshipescort 282 282 283 283 Vector3 spawnPosition = pawn->getWorldPosition() + Vector3(30,0,-30);
Note: See TracChangeset
for help on using the changeset viewer.