Ayuto / EventScripts-Emulator

A Source.Python plugin that is able to run EventScripts addons.
16 stars 9 forks source link

prop_dynamic_create [Spawns error model] #26

Closed ManifestManah closed 4 years ago

ManifestManah commented 5 years ago

When using the command prop_dynamic_create to spawn a prop it will always result in a huge error model being spawned no matter if you are using the .mdl at the end or not and no matter which model path you are trying to use.

Code used to test this:

block prop_dynamic_create
{
    es_prop_dynamic_create event_var(userid) models/props/de_nuke/cinderblock_stack.mdl
    es_msg This should spawn a prop_dynamic entity
}

block prop_dynamic_create
{
    es_prop_dynamic_create event_var(userid) models/props/de_nuke/cinderblock_stack
    es_msg This should spawn a prop_dynamic entity
}
Ayuto commented 4 years ago

Don't include models/ in your call to es_prop_dynamic_create.

This works fine.

event player_say
{
    es_prop_dynamic_create event_var(userid) props/de_nuke/cinderblock_stack.mdl
    es_msg This should spawn a prop_dynamic entity
}