ig.CONFIG.

CREATURE

Creature base configuration settings. IMPORTANT: Don't modify config directly! (see example)

Author:
  • Collin Hover - collinhover.com
Source:
// in order to add your own custom configuration to Impact++
// edit the file defining ig.CONFIG_USER, 'plusplus.config-user'
// ig.CONFIG_USER is never modified by Impact++ (it is strictly for your use)
// ig.CONFIG_USER is automatically merged over Impact++'s config

<static> CAN_BREAK_TETHER :Boolean

Whether creatures can break tether range to follow a prey or flee from a predator.

Default Value:
  • false
Source:

<static> CAN_FLEE :Boolean

Whether creatures flee from predators.

Default Value:
  • true
Source:

<static> CAN_LEARN_PREDATORS :Boolean

Whether creature can learn about new predators based on what it takes damage from.

Default Value:
  • false
Source:

<static> CAN_WANDER_X :Boolean

Whether creature can wander in x direction.

Default Value:
  • true
Source:

<static> CAN_WANDER_Y :Boolean

Whether creature can wander in y direction.

Default Value:
  • false
Source:

<static> DETECT_HIDDEN_PREDATOR :Boolean

Whether creature can detect hidden predators.

Default Value:
  • false
Source:

<static> DETECT_HIDDEN_PREY :Boolean

Whether creature can detect hidden prey.

Default Value:
  • false
Source:

<static> FLEE_HEALTH_PCT :Number

Percentage of health, between 0 and 1, when creature begins to flee.

Default Value:
  • 0.15
Source:

<static> MOVE_TO_PREDATOR_SETTINGS :Object

Settings for moving to predator.

Source:

<static> MOVE_TO_PREY_SETTINGS :Object

Settings for moving to prey.

Source:

<static> MOVE_TO_TETHER_SETTINGS :Object

Settings for tethering.

Source:

<static> MOVE_TO_WANDER_SETTINGS :Object

Settings for wandering.

Source:

<static> NEEDS_LINE_OF_SIGHT_PREDATOR :Boolean

Whether needs line of sight for predator.

Default Value:
  • true
Source:

<static> NEEDS_LINE_OF_SIGHT_PREY :Boolean

Whether needs line of sight for prey.

Default Value:
  • true
Source:

<static> PREDATOR_FROM_DAMAGE :Boolean

Whether creature sets predator to anything that damages it below flee threshold.

Default Value:
  • false
Source:

<static> REACTION_DELAY :Number

Delay in seconds between updates of creature targets. IMPORTANT: be careful about setting this value too low, as it can cause large performance hits.

Default Value:
  • 0.2
Source:

<static> REACTION_DISTANCE :Number

How far creature should search for targets. Tip: for best results, reaction distance should be <= pathfinding distance!

Default Value:
  • 100
Source:

<static> TETHER_DISTANCE :Number

Distance creature can move around its tether. Tip: a spawned creature will use its spawner as a tether, unless ig.Creature#tetherName is set and matches a valid entity in the game.

Default Value:
  • 100
Source:

<static> TETHER_TO_SPAWNER :Boolean

Whether creatures should use spawner as tether.

Default Value:
  • false
Source:

<static> WANDER_SWITCH_CHANCE :Number

Chance as a percent between 0 and 1 that direction will switch while wandering. Tip: setting this above 0.005 will cause creature to switch direction often and this can look rather stupid!

Default Value:
  • 0
Source:

<static> WANDER_SWITCH_CHANCE_STOPPED :Number

Chance as a percent between 0 and 1 that direction will switch while not wandering. Tip: setting this above 0.015 will cause creature to never really stop moving.

Default Value:
  • 0
Source: