This is using the V2 of the FPS Kit Player preset.
- Code: Select all
PlayerID = entity.spawnPreset("FPS_SpawnModel",sp1x,sp1y,sp1z); -- Spawn the preset player v2
--entity.setTag(playerID,"Player"); -- Sets the TAG of the Player
Mind you I think the preset automatically sets the TAG as Player.. so that command might not be used.
It also does not switch you to the player when you spawn in the preset this way and run in editor.