Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cs_trigger_roundstart causes an error #7

Open
pwitvoet opened this issue Dec 13, 2023 · 0 comments
Open

cs_trigger_roundstart causes an error #7

pwitvoet opened this issue Dec 13, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@pwitvoet
Copy link
Owner

When trying to use a cs_trigger_roundstart entity, the following error is thrown, causing MESS to fail:

Failed to process macro entities: EvaluationException: 'A function call requires a \<function\>, not a \<none\>.'.

This can be solved by replacing the contents of template_entities\cs\cs_trigger_roundstart.ted with the following:

// This entity will trigger its target when a new round starts.
//
// @MESS REWRITE:
// "classname": "macro_insert"
// "template_map": "{ted_dir() + '/cs_trigger_roundstart.map'}"
// @MESS;
@PointClass size(-8 -8 -8, 8 8 8) color(255 127 0) = cs_trigger_roundstart
[
    target(target_destination) : "Target"

    spawnflags(flags) =
    [
        1 : "Skip first round" : 0
    ]
]
@pwitvoet pwitvoet added the bug Something isn't working label Feb 1, 2024
@pwitvoet pwitvoet added this to the 1.2.3 milestone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant