Created
July 9, 2019 16:32
-
-
Save JoinedSenses/25301c18ea0a3a056288740fb6b736ef to your computer and use it in GitHub Desktop.
spawn example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sdktools> | |
// somefunction with a bunch of code | |
int entity = CreateEntityByName("ent_snowball_pile"); | |
if (entity == -1) { | |
return; | |
} | |
float origin[3]; | |
GetEntPropVector(client, Prop_Send, "m_vecOrigin", vec); | |
DispatchSpawn(entity); | |
TeleportEntity(entity, origin, NULL_VECTOR, NULL_VECTOR); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment