Announcement

Collapse
No announcement yet.

Should I use the Pawn class for a structure?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Should I use the Pawn class for a structure?

    I was just wondering if there is any obvious reason not to use the Pawn class for a structure, such as something like a missle turret? It seems like the Pawn class would provide all the necessary functions for the building locating and targeting other pawns. It would have health and a destuction animation. It seems like a good solution but I am curious if this is a bad idea for some reason.

    Thanks for your input in advance.

    #2
    Did you check the vehicle classes? Of course a stationary pawn object could work too.

    Comment


      #3
      I haven't looked into the vehicle classes, do they have similar functions. I know I already wrote a function and AI for my bots and honestly a turret would use a lot of the same logic. I could use SeePlayer, it would have a team and health. Vehicle classes might have a lot of the same stuff, Ill look into it. But you agree it seems like a pretty good idea, no obvious errors in my logic?

      Comment

      Working...
      X