Skip to content

Small edge use case for object_list_children where object_defintion input can be none (-1)#104

Open
Newbster-2 wants to merge 2 commits intoMtnDewIt:masterfrom
Newbster-2:master
Open

Small edge use case for object_list_children where object_defintion input can be none (-1)#104
Newbster-2 wants to merge 2 commits intoMtnDewIt:masterfrom
Newbster-2:master

Conversation

@Newbster-2
Copy link
Copy Markdown
Contributor

No description provided.

…ne off use case

object_list_children has an objectdefintion parameter, but you can pass none (-1) to this and it will return all children on the object, which as far as managed donkey shows, is the singular function out of the 5 functions that use objectdefinition that makes use of the input being none< and really, any function what so ever that takes a tag input, but can be none

example use case where I had a masterchief biped attached to the monitor (tested working):

(custom_animation_loop (unit (list_get (object_list_children (player_get 0) none) 0)) "objects\characters\masterchief\masterchief" "combat:any:any:taunt_salute" true)

I also checked against assembly's compiler and it does the same output -1 (FFFFFFFF)
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

Successfully merging this pull request may close these issues.

1 participant