• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Blog Post] Scripting API blog post discussion
#7
Is GetPlayerVehicleID Player_ or Vehicle_ module ?

And how about SetVehicleParamsForPlayer, IsPlayerInAnyVehicle, IsPlayerInVehicle or SetVehicleParamsForPlayer ?



Vehicle_IsPlayerInside works fine, but Vehicle_IsPlayerInAny doesn't sound right.

Maybe we could use the first parameter to guess the moduel type when possible ?



And how about consistency ?

If we dont want to shorten names SetPlayerPos becomes Player_SetPosition, and i've used 'Pos' so many times that it just doesn't sound right.
  Reply


Messages In This Thread
Scripting API blog post discussion - by Y_Less - 2020-04-14, 07:00 PM
RE: API blog post discussion - by dreftas - 2020-04-14, 09:47 PM
RE: API blog post discussion - by Polygon - 2020-04-15, 12:24 AM
RE: API blog post discussion - by Riddick - 2020-04-15, 08:25 AM
RE: Scripting API blog post discussion - by Expert* - 2020-04-29, 02:16 PM
RE: Scripting API blog post discussion - by Josh - 2021-01-07, 04:44 PM

Forum Jump: