
17.08.2018, 22:08
|
|
Участник форума
Регистрация: 19.01.2017
Сообщений: 130
С нами:
4901705
Репутация:
98
|
|
why this crashing i wanted to automatically exit car when car is about to explode
C++:
Код:
vehicle_info
*
my_veh
=
vehicle_info_get
(
VEHICLE_SELF
,
NULL
)
;
float
*
coord
=
new
float
[
3
]
;
coord
[
0
]
=
pPedSelf
->
GetPosition
(
)
->
fX
;
coord
[
1
]
=
pPedSelf
->
GetPosition
(
)
->
fY
-
2.0f
;
coord
[
2
]
=
pPedSelf
->
GetPosition
(
)
->
fZ
;
if
(
my_veh
->
hitpoints
==
200
)
// if vehicle hp is 200 then exit from car
{
GTAfunc_RemoveActorFromCarAndPutAt
(
coord
)
;
}
thanks for help
|
|
|