MFK Command: SetStageVehicleCharacterAnimation

Synopsis

Set the animation that the character will use in the stage vehicle.

This must be called in the same stage as the AddStageVehicleCharacter call that added the character.

Syntax

SetStageVehicleCharacterAnimation( <car>, <character>, <animation>, [<bobbing>] );
  • car: The name of the car the character is on.
    • current: The player's current car.
  • character: The name of character in the car.
  • animation: The animation to make the character use. Defaults to "in_car_idle".
  • bobbing: Whether or not to make the character bob. Defaults to false (if this function is called).
    • This will also make the character lean side-to-side when appropriate.
      • Though this is dependent on the user's Bug Fixes setting for this.

Examples

SelectMission("m1");
	...
    
    AddStage();
		AddStageVehicle("cVan","m1_cVan","NULL","cVan.con");
		AddStageVehicleCharacter("cVan", "bart", "sl", 0);	// Bart uses the smoke location in this example.

		// Make Bart surf on the hood(ish)
		// Note that "surf_cycle" is not in the NPD animation set by default.
		SetStageVehicleCharacterAnimation("cVan","bart","surf_cycle");

    	AddObjective("dummy");
        	
        CloseObjective();
    CloseStage();
CloseMission();

Notes

This can only be used on characters added with AddStageVehicleCharacter.

History

1.19

  • Added this command.
Back to top