Is there an alternative to this verb? Or do you have an idea how I could achieve the following without using it:
- Create a new thing that has a custom 3do and reacts on touches without using a static.jkl, items.dat and standard cogs except JK singleplayer ones (e.g. item_keyyellow.cog)
What I did until now is create a healthpack template, send a trigger with a reference to it, retrieve this trigger in item_keygreen.cog and use SetThingClassCog(GetParam(0), GetSelfCog()) to give it a new class cog.
The problem is, that the SetThingClassCog() does not always work on client computers. I've added PrintInt(GetSelfCog()) and PrintInt(GetThingClassCog(GetParam(0))) right after it, and while they always match for the host, a client sometimes gets a -1 for the second print. But there are other times when it just works great...
------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
- Create a new thing that has a custom 3do and reacts on touches without using a static.jkl, items.dat and standard cogs except JK singleplayer ones (e.g. item_keyyellow.cog)
What I did until now is create a healthpack template, send a trigger with a reference to it, retrieve this trigger in item_keygreen.cog and use SetThingClassCog(GetParam(0), GetSelfCog()) to give it a new class cog.
The problem is, that the SetThingClassCog() does not always work on client computers. I've added PrintInt(GetSelfCog()) and PrintInt(GetThingClassCog(GetParam(0))) right after it, and while they always match for the host, a client sometimes gets a -1 for the second print. But there are other times when it just works great...
------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)