The Player Character is the main component of Easy Game Pack.
The Player can:
-
Interact with the environment by pressing switches, opening doors, etc..
-
Take, inspect and store objects like documents, items, weapons, etc...
-
Execute all typical movements like walk, run, jump, crouch, swim, drive, etc..
-
Use weapons and objects stored into the inventory
Placing player into the scene (old method)
Starting from
2023.1 version there are different variants of Player and UI prefabs, one for every
Game Template.
So, if you want to insert player into a newly created scene you have to go to EasyGamePack/Templates project folder:
Then, click on the folder relative to the game template you want to use.
Every folder contains 2 prefabs, one for the player and one for the UI.
You have to insert all two of them into the scene.
To insert player simply drag and drop player prefab into the scene:
To Insert the UI click right mouse button on the UI prefab and choose "Insert Prefab":
| This is necessary because the UI prefab contains a huge number of elements so the system takes a lot of time to load all of them and the drag 'n' drop operation, even if possible, could be difficult and frustrating to perform.
|
See
Game Templates for more info about how to insert player into a scene.
Placing player into the scene using PlayerStart (new method)
Handling weapons and items
Either items and weapons can be also equiped by the player.
This means that the player can have a number of item and weapon slots on the
HUD, these slots can be filled (equiped) with
items and
weapons stored into the
inventory and then, in subsequent moments, they can be selected and used without opening the
inventory. We refer to the equiped items and weaopns as, respectively,
handItems and
handWeapons.
Hand items slots
<TODO>: Insert description text here...
|
|
Hand weapons slots
<TODO>: Insert description text here...
|
|
| When player pick up a weapon it is automatically put on hand slots, if hand slots are all full the player checks for space inside the inventory (i.e. if there are free weapon slots into the inventory), if he find a slot in the inventory he put the currently selected hand weapon into the inventory and put into the hand slot the new picked weapon.
On the contrary,
When player pick up an item it is automatically put into the inventory. Player checks for an empty item slot and, in case inventory is completely full the item is equiped, i.e. it is put on hand slot.
|
Following are the parameters specific for player character class, in can find them into the playerCharacter section of the player character class parameters:
| There are other specific parameters about input commands that will be covered in Commands paragraph, and other ones about sounds that will be explained in Sounds.
|
Camera
<TODO>: Insert description text here...
|
|
Max Num Slots
<TODO>: Insert description text here...
|
|
Max num weapons
<TODO>: Insert description text here...
|
|
Max num Hand weapons
<TODO>: Insert description text here...
|
|
Max num Hand items
<TODO>: Insert description text here...
|
|
Max num Docs
<TODO>: Insert description text here...
|
|
Max num Missions
<TODO>: Insert description text here...
|
|
Scan distance
<TODO>: Insert description text here...
|
|
Max health
<TODO>: Insert description text here...
|
|
Outline Low Heatlh
<TODO>: Insert description text here...
|
|
Max armor
<TODO>: Insert description text here...
|
|
Lamp
<TODO>: Insert description text here...
|
|
Battery Duration
<TODO>: Insert description text here...
|
|
Battery discharge at start
<TODO>: Insert description text here...
|
|
Lamp power
<TODO>: Insert description text here...
|
|
Inventory pause
<TODO>: Insert description text here...
|
|
Start weapon
<TODO>: Insert description text here...
|
|
GUI
<TODO>: Insert description text here...
|
|
Action by range
<TODO>: Insert description text here...
|
|
Action range
<TODO>: Insert description text here...
|
|
Auto action mask
<TODO>: Insert description text here...
|
|
Start mission
<TODO>: Insert description text here...
|
|
Hit event
<TODO>: Insert description text here...
|
|
Hitmask
<TODO>: Insert description text here...
|
|
Compact Inventory
<TODO>: Insert description text here...
|
|
Low health
<TODO>: Insert description text here...
|
|
Auto recovery
<TODO>: Insert description text here...
|
|
Auto recovery speed
<TODO>: Insert description text here...
|
|
Low Health texture
<TODO>: Insert description text here...
|
|
Low Health normal
<TODO>: Insert description text here...
|
|
Max scan distance
<TODO>: Insert description text here...
|
|
Dynamic cross
<TODO>: Insert description text here...
|
|
Auto slot count
<TODO>: Insert description text here...
|
|
Start Items
<TODO>: Insert description text here...
|
|
Max num map blocks
<TODO>: Insert description text here...
|
|
Auto use items
<TODO>: Insert description text here...
|
|
Max bullet time
<TODO>: Insert description text here...
|
|
Bullet time scale
<TODO>: Insert description text here...
|
|
Bullet time recovery speed
<TODO>: Insert description text here...
|
|
Outline selections
<TODO>: Insert description text here...
|
|