SpawnDropUnit WorldScript

From Serious Sam's Bogus Detour
Revision as of 16:00, 26 July 2017 by Scratch (talk | contribs) (Text replacement - " This script can be enabled or disabled." to "")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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