scripts restructured; teleswitch now works
[dd2d.git] / data / scripts / item / keygreen.dacs
blob45bfedcb595a378d76d3f6a9a3b808c8878109ec
1 module itemKeygreen is "item" "KeyGreen";
3 import apiActor;
4 import aiItem;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "KeyGreen", "sleep");
10   animAddFrame("item", "KeyGreen", "sleep", ACTOR_DIR_LEFT, "sprites/items/keyga0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "KeyGreen";
18   //me.classtype = "item";
19   me.radius = 10;
20   me.height = 8;
21   me.actorSetAnimation("sleep");
22   // add attached light
23   me.attLightXOfs = 0;
24   me.attLightYOfs = -5;
25   me.attachedLightRGBX(0, 100, 0, 16);
29 // thinker
30 public void think (Actor me) {
31   itemThinkKey(me);