# Lifecycle Events

Aside from the usual events in an `AirshipBehaviour`, the network behaviour adds the following you can use:

## General Networking Events

* `OnStartNetwork` - Method called when the object starts networking
* `OnStopNetwork` - Method called when the object stops networking

## Server Only

* `OnStartServer` - Method called when the object starts networking on the server
* `OnOwnershipServer` - Method called when the ownership of an object is changed on the server
* `OnSpawnServer` - Method called when the object spawns on the server
* `OnDespawnServer` - Method called when the object is despawned on the server
* `OnStopServer`  - Method called when the object stops networking on the server

## Client Only

* `OnStartClient` - Method called when the object starts networking on the client
* `OnOwnershipClient` - Method called when the ownership is changed on the client
* `OnStopClient` - Method called when the object stops networking on the client

## Execution Ordering of Events

<figure><img src="/files/7PJxBWRSBH6GaClBOOBo" alt=""><figcaption><p>The Lifecycle Events of an AirshipNetworkBehaviour</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.airship.gg/networking/airshipnetworkbehaviour/lifecycle-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
