Difference between revisions of "SpawnDropUnit WorldScript"

From Serious Sam's Bogus Detour
Jump to: navigation, search
(Created page with "{{WorldscriptIcon|rgb(102, 205, 218)|256|0}} This is a worldscript. This script can be executed by other scripts. This script can be enabled or disabled. == Properties == *...")
 
Line 1: Line 1:
 
{{WorldscriptIcon|rgb(102, 205, 218)|256|0}}
 
{{WorldscriptIcon|rgb(102, 205, 218)|256|0}}
  
This is a worldscript. This script can be executed by other scripts. This script can be enabled or disabled.
+
Drop a unit from the sky using a scene from the unit. When it falls on the floor, the unit is spawned and <code>DropTrigger</code> is executed. This script can be executed by other scripts. This script can be enabled or disabled.
  
 
== Properties ==
 
== Properties ==

Revision as of 12:09, 26 July 2017

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