scripts restructured; teleswitch now works
[dd2d.git] / data / scripts / item / protectionsuit.dacs
blobc46f34a71eafbaa7ebd6eb7cc872397efb1ce6c8
1 module itemProtectionsuit is "item" "ProtectionSuit";
3 import apiActor;
4 import aiItem;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "ProtectionSuit", "sleep");
10   animAddFrame("item", "ProtectionSuit", "sleep", ACTOR_DIR_LEFT, "sprites/items/suita0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "ProtectionSuit";
18   //me.classtype = "item";
19   me.radius = 10;
20   me.height = 8;
21   me.actorSetAnimation("sleep");
22   me.flags |= AF_NOGRAVITY;
26 // thinker
27 public void think (Actor me) {
28   itemThink(me);