Re: Spawn inside car

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


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";
   // Set local player details
   if (m_players.size() == 0 && !gEnv->IsDedicated())
      spawnParams.nFlags |= ENTITY_FLAG_LOCAL_PLAYER;

   // Spawn the player entity
   if (IEntity* pPlayerEntity = gEnv->pEntitySystem->SpawnEntity(spawnParams))

Re: Spawn inside car

maybecode wrote:Finally is working .
Thank you this resolve my problem :)


Hey Maybecode,

Interesting this picture works considering there is only an EntityID being fed nto the Vehicle:Enter. In this regard there is no trigger to call this node.


Who is online

Users browsing this forum: No registered users and 2 guests