Script Update [beta]
The beta branch contains a small update which affects the SoldierAI and Projectile scripts. The SoldierAI script now has a modifiable field that lets you choose a prefab for the projectile his weapon fires. The default value is "Prefabs\Projectiles\tracer.pfb" so your existing instances of these objects will be unaffected.
By making the projectile prefab a modifiable value, we can use different types of projectiles with this script. For example, a medieval archer could fire arrows by creating a new prefab using a model of an arrow with the projectile script attached to it. Other types of weapons can be set up like energy weapons or rocket launchers. For example, you could create a "chicken gun" by selecting a prefab for the projectile that used a chicken model with the MonsterAI script attached to it.
- 4
0 Comments
Recommended Comments
There are no comments to display.