# Placing AISpot Nodes

{% hint style="warning" %}
This guide only explains how to place AISpot Nodes, for them to be actually be used by NPCs, you will need to [setup a community](/cyberpunk-2077-modding/modding-guides/world-editing/ai-and-npcs/creating-communities.md)
{% endhint %}

## Usage

* AISpot Nodes define workspots that NPCs created via communities can use
* A workspot is simply a location at which a NPC will play a set of animations

## Requirements

### Tools

* [World Builder](https://github.com/justarandomguyintheinternet/CP77_entSpawner/releases) (v.0.91 or newer)
* [ArchiveXL](https://github.com/psiberx/cp2077-archive-xl)
* [Codeware ](https://github.com/psiberx/cp2077-codeware/releases)(1.15.0 or newer)
* [WolvenKit](https://github.com/WolvenKit/WolvenKit) (With latest version of World Builder import script)

### Knowledge

* You need to have a basic understanding of:
  * Working with WolvenKit
  * Using World Builder (Spawning things and [importing](/cyberpunk-2077-modding/modding-guides/world-editing/object-spawner/exporting-from-object-spawner.md) into WolvenKit)

## Spawning AISpots

{% hint style="warning" %}
You **must** assign a unique NodeRef to each AISpot, in order for it to be usable
{% endhint %}

* In order to spawn a new AISpot, select the corresponding spawn category in World Builder:
  * `AI -> AI Spot`
* When you spawn an AISpot, it will by default use Judy to preview the animation
  * This may not always work (Judy will just stand there), since not all workspots support all body rigs
  * For more information on this, see below

### Previewing Options

{% hint style="info" %}
It is important to be mindful of the **Supported Rigs** and the preview NPC used.\
If you preview a workspot with a different rig than the NPC(s) assigned to it, clipping or other visual issues may occur.
{% endhint %}

* To know what rigs a workspot supports, take a look at the `AI Spot -> Previewing Options -> Supported Rigs` header

<figure><img src="/files/rJyf0s1Fbnk8Ga0vmDPL" alt="" width="301"><figcaption><p>Example AI Spot, and its workspot's supported rigs</p></figcaption></figure>

* Here you can also change whether you want a NPC to preview the spot, and also which NPC should do so
  * A list of all NPC records can be found in World Builder `Entity -> Record` (Search for `Character.`)
* Additionally, you can change the speed of the animation during the preview
  * This is helpful since each time you move the spot, the animation will restart

{% hint style="danger" %}
At this time, some workspots do not display their associated props in preview, but they may appear correctly once compiled.\
It is recommended to verify desired prop-related workspots by compiling the archive.

**Example :** children playing soccer will not show their footballs in preview, but the props will appear after compilation.
{% endhint %}

### Spot Options

* `Is Infinite`: If set to false, the NPC will try and go to the next AISpot defined in its community entry, once it is done with the current one
* Markings: For information on markings, check the [community](/cyberpunk-2077-modding/modding-guides/world-editing/ai-and-npcs/creating-communities.md#markings) guide
* As mentioned above, you **must** assign a unique NodeRef to your AISpot, in order for it to be useable


---

# 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://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/world-editing/ai-and-npcs/placing-aispot-nodes.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.
