-
Notifications
You must be signed in to change notification settings - Fork 10
Action functions
AiTechEye edited this page Sep 7, 2018
·
8 revisions
function | description |
---|---|
aliveai.jump(self,table) | (table with directions eg {x=5,y=7}) all derections have defaults |
aliveai.walk(self,speed) | default speed is 1, default run speed is 2 |
aliveai.lookat(self,pos,advanced,walk) | advanced (boolean) is roating instead of just set the yaw, walk (boolean) walking while it are roationg |
aliveai.stand(self) | stop moving and animation |
aliveai.punch(self,object,damage) | punch an object damage is number |
aliveai.place(self,pos,node_name) | place a node |
aliveai.dig(self,pos) | dig a node |
aliveai.eat(self) | if possable eat until full health if its inventory contains item(s) with the itemgroup "aliveai_eatable" |
aliveai.invdropall(self) | drop all items in its inventory as drops |
aliveai.open_door(self,pos) | opens a door made for aliveai bots |
aliveai.sitchair(self,pos) | sit in a chair |
aliveai.sleep(self,set) | self.type=="npc" only, set: 1=rotation by the node's facedir, 2=where it is, nil=create path to a bed go to it and sleep |
aliveai.dying(self,set) | set: 1=faint/dying (50% to survive), 2=dead (using self.dying and self.dead),3=relive nil=keep processing the status |