ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 2362

Remoove Water with Custom Teleport to Ship Wrack in ASM

by Torxi - 07-09-2020 - 09:02 AM
#1
[ hide]
Code:
PushString "Delete Water"
Call @AddOption_

[24=@SelfOptionsDeleteWater_]

:SelfOptionsDeleteWater_
Call @DeleteWater1_
Jump @SelfOptionsReturn_

:DeleteWater1_
Function 1 3 0
Push 0x60000000
Push 0x21C8C48
pSet
Jump @DeleteWater_Continue_
:DeleteWater_Continue_
fPush 3174.0131835938
StaticSet 472
fPush -339.10998535156
StaticSet 473
fPush -17
StaticSet 474
Call @TeleportationTeleport_
Return 1 0



:TeleportationTeleport_
Function 0 2 0
CallNative "PLAYER_PED_ID" 0 1
CallNative "IS_PED_SITTING_IN_ANY_VEHICLE" 1 1
JumpFalse @TeleportationTeleportOnFoot_
CallNative "PLAYER_PED_ID" 0 1
CallNative "GET_VEHICLE_PED_IS_USING" 1 1
push_3
pStatic 472
ToStack
push_1
push_0
push_0
push_1
CallNative "SET_ENTITY_COORDS" 8 0
Jump @TeleportationReturn_

:TeleportationTeleportOnFoot_
CallNative "PLAYER_PED_ID" 0 1
push_3
pStatic 472
ToStack
push_1
push_0
push_0
push_1
CallNative "SET_ENTITY_COORDS" 8 0
Jump @TeleportationReturn_
[ /hide]
Reply

Users browsing: 2 Guest(s)