Not logged inOpenClonk Forum
Up Topic Interface for useable objects [update]

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Zapper

>You want a function for every procedure?


No. Tumble and Jump both use the procedure FLIGHT for example (flaw in current implementation of IsJumping btw, good that we have that function in one place..!). And if we introduce special cases someday (GetAction() == "Jump" vs WildcardMatch(GetAction(), "*Jump*")) I would rather do that in one function in the Clonk than in each check in every third object

PS: imagine we use a helper-action one day with the procedure ATTACH in which the Clonk is not ment to use items. That would mess everything up and we would have to change every script that checks for "ATTACH" instead of using a callback in the Clonk (even if you don't want to call it IsRiding)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill