Hi, i've got a problem, kind of strange actually, didn't touch the code but my entities are now not solid.
I use this code to create a classnamed entity so i can detect when the users aim at it.
PHP Code:
public Action CreateProp(int client, int args)
{
int entity = CreateEntityByName("prop_dynamic");
if (IsValidEntity(entity))
{
DispatchKeyValue(entity, "Classname", "MyProp");
DispatchKeyValue(entity, "model", PROP_MODEL);
DispatchKeyValue(entity, "Solid", "2");
DispatchKeyValue(entity, "RandomAnimation", "0");
DispatchSpawn(entity);
ActivateEntity(entity);
// After we define kv's, we shall now move the entity
float vector[3];
GetAimCoords(client, vector);
TeleportEntity(entity, vector, NULL_VECTOR, NULL_VECTOR);
}
return Plugin_Handled;
}
Placing it, model and everything else is working fine, but its not solid anymore.
Im trying to learn more about entities management in CSGO, could someone help me?
Solution: First, the entity must be deployed onto the origin, then, dispatched.
__________________