Re: Spawn inside car

#3
Hi can you provide a exemple like I said I'm new in cryengine I think will be great because I'm pretty sure a lot of people have that problem too looks simples but if we don't have a clue it's complicated.

Thank you so much for the information

Re: Spawn inside car

#5

Code: Select all

bool CGamePlugin::OnClientConnectionReceived(int channelId, bool bIsReset) { // Connection received from a client, create a player entity and component SEntitySpawnParams spawnParams; spawnParams.pClass = gEnv->pEntitySystem->GetClassRegistry()->GetDefaultClass(); spawnParams.sName = "Player"; spawnParams.nFlags |= ENTITY_FLAG_NEVER_NETWORK_STATIC; // Set local player details if (m_players.size() == 0 && !gEnv->IsDedicated()) { spawnParams.id = LOCAL_PLAYER_ENTITY_ID; spawnParams.nFlags |= ENTITY_FLAG_LOCAL_PLAYER; } // Spawn the player entity if (IEntity* pPlayerEntity = gEnv->pEntitySystem->SpawnEntity(spawnParams)) {

Who is online

Users browsing this forum: No registered users and 1 guest