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

[treyarc] [T6] missing animation syntax #221

Open
xensik opened this issue Sep 4, 2024 · 3 comments
Open

[treyarc] [T6] missing animation syntax #221

xensik opened this issue Sep 4, 2024 · 3 comments

Comments

@xensik
Copy link
Owner

xensik commented Sep 4, 2024

TODO: investigate namespace syntax for animtrees

sample:

open_hatch()
{
    self SetAnim( %vehicles::v_vtol_doors_open, 1, 0.1, 1 );
}

context:
image

@Jbleezy
Copy link

Jbleezy commented Sep 17, 2024

Are you saying it should have vehicles::?

Latest release (1.4.6) decompiles like this:

image

@xensik
Copy link
Owner Author

xensik commented Sep 17, 2024

yes @JezuzLizard found this missing syntax in SP scripts

@JezuzLizard
Copy link
Collaborator

Yeah SP makes use of this syntax because they want to reference multiple different animtrees in the same function.

#using_animtree

is used as a file scope where functions defined after it implicitly resolve anims from that animtree.

There is an alternative solution where you store the anims in variables since the animtree is only needed to be known when the anim is initialized. Although you'd still need to initialize the variables in separate functions as without the syntax that SP scripts use to explicitly reference an animtree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants