Skip to content
This repository was archived by the owner on Aug 16, 2018. It is now read-only.

Writing enemies

std::gregwar edited this page Feb 3, 2018 · 1 revision

Abstract

Enemies, and other Mobiles OBjects (MOBs) such as NPCs are a bit different than maps or static objects like destructibles. Since their behaviour relies heavily on randomness or one-time decision making. Their behaviour is simulated asymmetrically. Only one client is chosen to be enemy master and other clients get only remote puppets called slaves whose movement and actions are synchronised with the master. In turn slaves notify master when they get hurt.

Enemy script template

-- TODO

Example

-- TODO
Clone this wiki locally