enableCollisionWith: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
m (Text replacement - " {{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}} " to "") |
||
Line 24: | Line 24: | ||
| [[disableCollisionWith]] | | [[disableCollisionWith]] | ||
}} | }} | ||
<!-- CONTINUE Notes --> | <!-- CONTINUE Notes --> |
Revision as of 14:31, 15 February 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object
- vehicle: Object
- Return Value:
- Return value needed
Examples
- Example 1:
[_veh1, _veh2] remoteExecCall ["enableCollisionWith", 0, _veh1];
Additional Information
- See also:
- See also needed
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
- 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.