StartHelicopterBhv

From Nomad DB
Revision as of 16:49, 15 April 2020 by Cobra (talk | contribs) (fixed "previoulsly"... seriuously?)

Starts the specified behavior on a helicopter to either follow a path, fly to an entity or chase a pawn.

Syntax

StartHelicopterBhv(helicopterEntity, pathOrPos, target, config)
  • helicopterEntity (string): The ID of the target helicopter the behavior should be started on
  • pathOrPos (string): The ID of the path to follow or the entity to reach
  • target (string): The ID of the pawn to follow (if a chase behavior was specified)
  • config (string): The behavior to use on the helicopter (corresponds to an item in the HelicopterBhvSetup library)

Example

Make a previously spawned helicopter follow the player around.

StartHelicopterBhv(helicopterEntityId, GetInvalidEntityId(), GetLocalPlayerEntityId(), "HelicopterBhvSetup.1978142222")

Stop the helicopter from following the player.

StopHelicopterBhv(helicopterEntityId)

Related Pages