About Store Forum Documentation Contact



Post Reply 
Questions regarding objects and other things
Author Message
JamesProctor Offline
Member

Post: #1
Questions regarding objects and other things
I've got a couple questions:

1) First of all is it possible to create an object that contains a mesh in the World Editor however doesn't display the object in the game. What I would like to do is have an object that represents Spawn Points that I can see in the editor but once in game it loads the class associated with it but doesn't create the mesh.

2) My other question is is it possible to create a Base class (example: Boss) that inherits from the Game::Chr class and then in this example create different classes that inherits from Boss for each of my bosses which would give each boss it's own distinct behaviors. How would I then add these classes to the world from the Spawn Script as the Spawnners spawned the bosses? Would I need to add virtual methods to the boss class and then add a Boss container and add each boss to that container?
10-03-2012 10:21 AM
Find all posts by this user Quote this message in a reply
Rabishan Offline
Member

Post: #2
RE: Questions regarding objects and other things
1) you'll have to create a class for spawn points say SpawnPoint. then override the default drawPrepare function and put nothing inside it.

UInt SpawnPoint::drawPrepare()
{
return 0;
}
(This post was last modified: 10-05-2012 05:25 AM by Rabishan.)
10-05-2012 05:24 AM
Find all posts by this user Quote this message in a reply
Post Reply