example
example

资源 Boat anchor-独立

bigsea

活跃的用户
高级用户
认证用户

Boat anchor​

Very simple and basic boats anchor script. While anchored, boat will drift back and forth in anchored place depending on location where it was anchored. If force exceeds, anchor might brake, for example if you start driving anchor will brake.

Config​

All of the configs here are set using setr [anchor:configOption] [boolean]

ConVarDefaultDescriptionParameter(s)
anchor:command_enabledtrueDefines if command /anchor is enabled on resource start.boolean
anchor:use_ace_permissionsfalseDefines if command can be used only with ace permissions.boolean
anchor:max_speed3.0If speed of the boat is higher than defined, player won't be able to anchor.number
anchor:min_drift_distance0.1Defines minimum drift distance from anchored position before it starts to apply mass relatively to world coords.number
anchor:breaking_force600.0Defines breaking force before anchor breaks.number

Documentation​

Exports​

Client​

Toggles​

ExportDescription
ToggleAnchorToggles boat anchor

Getters​

State BagDescriptionParameter(s)Return Type
CanAnchorReturns if current boat can be anchored, vehicle need to passed.intboolean
IsAnchoredReturn if current is currently anchored, vehicle need to passed.intboolean

 

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
感谢分享
 
顶部