I have written the following code the spawn the "npc_turret_floor" entity.

   CNPC_FloorTurret *pEntity = (CNPC_FloorTurret*) CreateEntityByName(
"npc_floor_turret" );
   pEntity->Spawn();
   pEntity->SetLocalOrigin( local_origin );
   pEntity->SetLocalAngles( local_angles );
   pEntity->AddSpawnFlags( 0x00000020 );

For some reason however; whenever I execute this code the game crashes.
Any idea why?

Thanks,
Mukkan


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to