F.1 Utility Scripts

Updated 2 days ago

SmartAgentNavigator

  • Allows a NavMeshAgent to become much more powerful both in its pathing and performance.
  • NavMeshAgent is now able to follow destinations inside and out of Fire Exits, Main Entrance and Elevators, both taking optimal routes and simultaneously doing it performantly.
  • Also has an option to start a performant yet vanilla style search/roaming algorithm.

Progressive Scripts

PlanetUnlocker

  • Allows you to unlock a specified moon with a synced HUD message.

UnlockProgressiveObject

  • Allows you to unlock Shop items or Unlockables from the terminal to be able to buy them through interacting with an object with this script.

Achievement Scripts

AchievementTriggers

  • Script that allows you to trigger the different types of achievements and their requirements through the use of UnityEvents from another script.

ExtraEvent Scripts

Keep in mind to attach these ExtraEvent Scripts onto the appropriate Items/Enemies/ScanNodes.

ExtraItemEvents

  • Adds the following events to hook onto via UnityEvents:
    • OnCollectInShip

ExtraEnemyEvents

  • Adds the following events to hook onto via UnityEvents:
    • OnEnemyKilled
    • OnEnemyKilledByPlayer

ExtraScanEvents

  • Adds the following events to hook onto via UnityEvents:
    • OnScan (scanning the ScanNode)
    • OnFirstScan (scanning the specific ScanNode for the first time)

Misc Scripts

ApplyRendererVariants

  • Allows you to apply a synced variant of a renderer through editing its materials on spawn.

ChanceScript

  • Rolls a synced random number between 1 and 100 on spawn, if it's under a specific number, runs a UnityEvent.

AmbientNoisePlayer

  • Plays synced sounds at random specified intervals.

AutoRotate

  • Gives a GameObject a random rotation speed between a min and a max, is also synced.

EnemyOnlyTriggers

  • Trigger for enemies that only activates when another enemy has collided with said enemy.

PlayerOnlyTriggers

  • Trigger for enemies that only activates when a player has collided with said enemy.

ForceScanColorOnItem

  • Forces a specific colour on a ScanNode, able to change the Text and Background colours individually.

SpawnSyncedDawnLibObject

  • Allows you to spawn any loaded DawnLib hazard, if the hazardis not loaded it simply does not spawn it, does not have to be your own Hazard, uses the Namespace+Key system to identify different hazards.

Network Scripts

NetworkAudioSource

  • Allows networking the use of an AudioSource so removes the need to sync different sounds playing between clients.

ClientNetworkTransform

  • Allows a client with an OwnerShip of a NetworkObject to see changes happening in position and rotation at real-time rather than a tick late.

OwnerNetworkAnimator

  • Allows a client with an OwnerShip of a NetworkObject to trigger synced changes in an Animator.