Not logged inOpenClonk Forum
Up Topic Adaptive interactions in OpenClonk

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 Sven2
All those properties are defined in script. If you want to change the rope gun, the easiest way would be to copy the rope gun definition (Objects.ocd\Items.ocd\Tools.ocd\GrappleBow.ocd) into your scenario (e.g. MyScenario.ocs\GrappleBow.ocd) and modify the value(s). Definitions copied into the scenario will always overload those defined in the standard package and they will be sent to all clients in network when they load the scenario on join.

If you want to change them at runtime, to stay in sync with the clients who don't have your engine, you will have to send a CID_Script control packet that changes the values. E.g. define global variables in script in your local definition (e.g. static g_rope_length = 100;), use those in the scripts (SetMaxLength(g_rope_length)) and send modifications via network (::Control.DoInput(CID_Script, new C4ControlScript("g_rope_length=200", -1, true), CDT_Decide);).

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill