FirstPersonGame
namespace Griff.Modules.FirstPerson;
public static class FirstPersonGameWhat a script can ask of a first-person game, as members of Game (Game.FirstPersonViewer, Game.Equip(shotgun)): the view, the player looked through, and the weapon in hand.
Methods
Section titled “Methods”public static bool Equip(Game game, Weapon weapon)public static void Fire(Game game, Weapon weapon)get_CurrentWeapon
Section titled “get_CurrentWeapon”public static Weapon? get_CurrentWeapon(Game game)get_FirstPersonView
Section titled “get_FirstPersonView”public static FirstPersonView? get_FirstPersonView(Game game)get_FirstPersonViewer
Section titled “get_FirstPersonViewer”public static Entity? get_FirstPersonViewer(Game game)