Difference between revisions of "APPLY FORCE TO OBJECT"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=12 |p1t=integer |p1d=Object Id |p2t=bool |p2d=Unknown |p3t=float |p3d=X Angle |p4t=float |p4d=Y Angle |p5t=float |p5d=Z Angle |p6t=float |p6d=X Force |p7t=float |p7d=Y Force |...)
 
(Added IsForceDirectionReletive. Swapped around force & angle parameters as i found they were listed backwards here, in my testing. Added suggested values to unknown parameters.)
 
Line 2: Line 2:
 
|np=12
 
|np=12
 
|p1t=integer
 
|p1t=integer
|p1d=Object Id
+
|p1d=object Id
 
|p2t=bool
 
|p2t=bool
|p2d=Unknown
+
|p2d=Unknown, suggested: true
 
|p3t=float
 
|p3t=float
|p3d=X Angle
+
|p3d=X Force
 
|p4t=float
 
|p4t=float
|p4d=Y Angle
+
|p4d=Y Force
 
|p5t=float
 
|p5t=float
|p5d=Z Angle
+
|p5d=Z Force
 
|p6t=float
 
|p6t=float
|p6d=X Force
+
|p6d=X Angle
 
|p7t=float
 
|p7t=float
|p7d=Y Force
+
|p7d=Y Angle
 
|p8t=float
 
|p8t=float
|p8d=Z Force
+
|p8d=Z Angle
 
|p9t=bool
 
|p9t=bool
|p9d=Unknown
+
|p9d=Unknown, suggested: true
 
|p10t=bool
 
|p10t=bool
|p10d=Unknown
+
|p10d=IsForceDirectionReletive
 
|p11t=bool
 
|p11t=bool
|p11d=Unknown
+
|p11d=Unknown, suggested: true
 
|p12t=bool
 
|p12t=bool
|p12d=Unknown
+
|p12d=Unknown, suggested: true
 
|r=0
 
|r=0
 
}}
 
}}
  
 
Applies force to an object.
 
Applies force to an object.
 +
 +
P10 IsForceDirectionReletive specifies if the force direction is relative to direction object is facing (true), or static world direction (false).

Latest revision as of 10:40, 30 April 2009

APPLY_FORCE_TO_OBJECT
Number of parameters: 12
Parameter #TypeDescription
1.integerobject Id
2.boolUnknown, suggested: true
3.floatX Force
4.floatY Force
5.floatZ Force
6.floatX Angle
7.floatY Angle
8.floatZ Angle
9.boolUnknown, suggested: true
10.boolIsForceDirectionReletive
11.boolUnknown, suggested: true
12.boolUnknown, suggested: true
Return value:
TypeDescription
None

Applies force to an object.

P10 IsForceDirectionReletive specifies if the force direction is relative to direction object is facing (true), or static world direction (false).