Jump to content

Entities: Difference between revisions

From Kingpin Wiki
No edit summary
No edit summary
Line 62: Line 62:
'''Map Entity Color:''' (.5 .5 1) (<span style='color:#8080FF'>COLOR PREVIEW</span>)
'''Map Entity Color:''' (.5 .5 1) (<span style='color:#8080FF'>COLOR PREVIEW</span>)
'''Dimensions:''' (-16 -16 -24) (16 16 48)
'''Dimensions:''' (-16 -16 -24) (16 16 48)
'''Keys'''
{| class="wikitable"
|-
|targetname
|This entity's ID
|}

Revision as of 15:27, 15 February 2025

Ai entities

ai_boundary

Map Entity Color: (.5 .5 0) (COLOR PREVIEW) Dimensions: Size of map components used Character will abort pursuing player when touching this brush. Will take cover until the player is out of view, then return to guarding position (if character has been assigned one). Keys

moral Only characters with an equal or lower moral will be affected by this brush.
cast_group Gang number -- 0 = neutral, 1 = friendly, 2+ = enemy

ai_event_follow

Map Entity Color: (.5 .5 0) (COLOR PREVIEW) Dimensions: Size of map components used Client touching this brush will become a leader to all other characters in line of sight, that have the same "cast_group" as the brush ("cast_group" must be greater than 0 to work). Keys

cast_group Gang number -- 1 = friendly, 2+ = enemy

ai_event_hostile

Map Entity Color: (.5 .5 0) (COLOR PREVIEW) Dimensions: Size of map components used Character touching this brush will become a hostile enemy to all other characters in line of sight, that have the same "cast_group" as the brush ("cast_group" must be greater than 0 to work). Keys

cast_group Gang number -- 1 = friendly, 2+ = enemy

ai_guard

Map Entity Color: (.5 .5 1) (COLOR PREVIEW) Dimensions: (-16 -16 -24) (16 16 48) Set a cast's 'guard_target' to the 'targetname' of this entity. That character will then guard this location. Keys

targetname This entity's ID, used in 'guard_target' of the cast entity
guard_radius Max guarding radius (default=512)

ai_locked_door

Map Entity Color: (.5 .5 0) (COLOR PREVIEW) Dimensions: Size of map components used A character touching this brush will check the targeted door to see if it is closed. If so, the character will head towards the specified <a href='ai.html#entity_path_corner_cast'>path_corner_cast</a>. Example use: guiding AI characters away from a locked door. Keys

target Door's ID
pathtarget <a href='ai.html#entity_path_corner_cast'>path_corner_cast</a>'s ID to head for

ai_safespot

Map Entity Color: (.5 .5 1) (COLOR PREVIEW) Dimensions: (-16 -16 -24) (16 16 48)

Keys

targetname This entity's ID