Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Version "4.7.1"
- class TalkingPlant: Actor
- {
- meta String PlantMessage;
- property PlantMessage: PlantMessage;
- }
- class Plant: TalkingPlant
- {
- Default
- {
- Height 96;
- Radius 50;
- Xscale 0.36;
- YScale 0.36;
- PlantMessage "yeah";
- }
- States
- {
- Spawn:
- PLNT A -1;
- Loop;
- }
- }
- class MonsterDeathEventHandler : EventHandler {
- override void WorldThingDied(WorldEvent e) {
- for (let i = BlockThingsIterator.Create(e.Thing, 800); i.Next();) {
- Actor other = i.thing;
- if(other && other.GetClassname() == "Plant"){
- string message = other.PlantMessage;
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment