Zone::overridePopscheduleVehicleModel: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
Line 14: Line 14:
{{Zone_s_function_c}}
{{Zone_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Zone API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:10, 11 May 2017

Only used once in the decompiled scripts. Seems to be related to scripted vehicle generators.

Modified example from 'am_imp_exp.c4', line 6406:
/* popSchedules[0] = ZONE::GET_ZONE_POPSCHEDULE(ZONE::GET_ZONE_AT_COORDS(891.3, 807.9, 188.1));
etc.
*/
ZONE::OVERRIDE_POPSCHEDULE_VEHICLE_MODEL(popSchedules[index], vehicleHash);
STREAMING::REQUEST_MODEL(vehicleHash);

Syntax

mp.game.zone.overridePopscheduleVehicleModel(scheduleId, vehicleHash);

Required Arguments

  • scheduleId: int
  • vehicleHash: Model hash or name

Return value

  • Undefined

Example

// todo

See also

Template:Zone s function c