enableCollisionWith: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 10: Line 9:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| Cancels the effects of [[disableCollisionWith]].  |DESCRIPTION=
| Cancels the effects of [[disableCollisionWith]].  |DESCRIPTION=
____________________________________________________________________________________________


| vehicle '''enableCollisionWith''' vehicle |SYNTAX=
| vehicle '''enableCollisionWith''' vehicle |SYNTAX=
Line 26: Line 23:
|x1= <code>[_veh1, _veh2] [[remoteExecCall]] ["enableCollisionWith", 0, _veh1];</code>|EXAMPLE1=  
|x1= <code>[_veh1, _veh2] [[remoteExecCall]] ["enableCollisionWith", 0, _veh1];</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[disableCollisionWith]] |SEEALSO=  
| [[disableCollisionWith]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:21, 17 January 2021

Hover & click on the images for description

Description

Description:
Cancels the effects of disableCollisionWith.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle enableCollisionWith vehicle
Parameters:
vehicle: Object
vehicle: Object
Return Value:
Nothing

Examples

Example 1:
[_veh1, _veh2] remoteExecCall ["enableCollisionWith", 0, _veh1];

Additional Information

See also:
disableCollisionWith

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on April 5, 2015 - 00:13 (UTC)
Ranwer
enableCollisionWith is a script that when you apply it to an object, it will be solid and the player will not be able to go through it. However, if you want your unit to go through it, you may want to use the disableCollisionWith command. An example for this is: //name of unit in editor such as player1 //name of object in editor such as car1 car1 enableCollisionWith player1; //to make your unit go through the car, use the below and make sure you know what your doing! car1 disableCollisionWith player1; Both commands enableCollisionWith and disableCollisionWith, are very handy codes and could be used for example: map testing, mission editing and even animation cutscenes.