enableCollisionWith: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 11: | Line 11: | ||
|descr= Cancels the effects of [[disableCollisionWith]]. | |descr= Cancels the effects of [[disableCollisionWith]]. | ||
|s1= | |s1= vehicle '''enableCollisionWith''' vehicle | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] |
Revision as of 22:01, 19 June 2021
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
- 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.