scripts restructured; teleswitch now works
[dd2d.git] / data / scripts / item / backpack.dacs
blob5e16517e2500bd9f2f6c25e63d2e349978673f3b
1 module itemBackpack is "item" "BackPack";
3 import apiActor;
4 import aiItem;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "BackPack", "sleep");
10   animAddFrame("item", "BackPack", "sleep", ACTOR_DIR_LEFT, "sprites/items/bpaka0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "BackPack";
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);