Difference between revisions of "StopHelicopterBhv"

From Nomad DB
(Created page with "Stops a behavior on a helicopter that was previously started using StartHelicopterBhv. == Syntax == <syntaxhighlight lang="lua"> StopHelicopterBhv(helicopterEntity) </syn...")
 
Line 8: Line 8:
  
 
== Example ==
 
== Example ==
 +
To unassign the current behavior of the specified helicopter.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
StartHelicopterBhv(helicopterEntityId, GetInvalidEntityId(), GetLocalPlayerEntityId(), "HelicopterBhvSetup.1978142222")
+
StopHelicopterBhv(helicopterEntity)
-- To stop the heli following you around
 
StopHelicopterBhv(helicopterEntityId)
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 16:51, 15 April 2020

Stops a behavior on a helicopter that was previously started using StartHelicopterBhv.

Syntax

StopHelicopterBhv(helicopterEntity)
  • helicopterEntity (string): The ID of the helicopter to stop a behavior on

Example

To unassign the current behavior of the specified helicopter.

StopHelicopterBhv(helicopterEntity)

Related Pages