# Unable to derive from ALevelScriptActor

**URL:** <https://forums.unrealengine.com/t/unable-to-derive-from-alevelscriptactor/275399>\
**Category:** C++\
**Tags:** unreal-engine, editor, CPP, question\
**Created:** [March 11, 2014, 2:17am UTC](https://forums.unrealengine.com/t/unable-to-derive-from-alevelscriptactor/275399 "2014-03-11T02:17:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:17am UTC](https://forums.unrealengine.com/t/unable-to-derive-from-alevelscriptactor/275399/1 "2014-03-11T02:17:40Z")

</div>

In nosing around I was given the opportunity to derive from ALevelScriptActor from within Rocket’s Add Code to Project option. Once it generated itself the compiler complained.

```
4> g:\rocket\bettertech\intermediate\builddata\include\bettertech\../../../../Source/BetterTech/Classes/BetterTechLevelScriptActor.h(12): error C2504: 'ALevelScriptActor' : base class undefined
4> G:\Rocket\BetterTech\Source\BetterTech\Private\BetterTechLevelScriptActor.cpp(7): error C2437: 'Super' : already initialized

```

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:17am UTC](https://forums.unrealengine.com/t/unable-to-derive-from-alevelscriptactor/275399/2 "2014-03-11T02:17:41Z")

</div>

If this is a class that should not be derived from i think it should be capped off and not show up in the preferences or the class listing when i try to derive, like the Console

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:17am UTC](https://forums.unrealengine.com/t/unable-to-derive-from-alevelscriptactor/275399/3 "2014-03-11T02:17:41Z")

</div>

It is our intention that ALevelScriptActor can be subclassed. We’ll see if we can repro your issue here and get it resolved.

Cheers!  
Jeff

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:17am UTC](https://forums.unrealengine.com/t/unable-to-derive-from-alevelscriptactor/275399/4 "2014-03-11T02:17:42Z")

</div>

Thanks Bunches!
