SpawnDropUnit WorldScript

From Serious Sam's Bogus Detour
Revision as of 12:09, 26 July 2017 by Scratch (talk | contribs)

Jump to: navigation, search

Drop a unit from the sky using a scene from the unit. When it falls on the floor, the unit is spawned and DropTrigger is executed. This script can be executed by other scripts. This script can be enabled or disabled.

Properties

  • Resource UnitType, unit producer
  • String SceneName
  • Float Height, default: 100
  • Float InitialFallSpeed, default: 0.05
  • Float MaxFallSpeed, default: 0.4
  • Float FallSpeedMultiplier, default: 1.1
  • Unit feed DropTrigger, validates

Unit sources

  • LastSpawned
  • AllSpawned