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...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{Page_WD2}}
 
Stops a behavior on a helicopter that was previously started using [[StartHelicopterBhv]].
 
Stops a behavior on a helicopter that was previously started using [[StartHelicopterBhv]].
  
Line 8: Line 9:
  
 
== 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>
  

Latest revision as of 20:40, 27 October 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