Advertisement
metalx1000

Blender 3D Game - Add Object

Jan 26th, 2012
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import bge
  2.  
  3. scene = bge.logic.getCurrentScene()
  4. ob = bge.logic.getCurrentController().owner
  5.  
  6. ob1 = scene.addObject("Sphere", ob)
  7. #ob2 = scene.addObject("object2", ob)
  8.  
  9. print(ob1, ob2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement