Jump to content
Sign in to follow this  
eagledude4

User actions not displaying

Recommended Posts

As the title says, the below actions do not display when I am within 5 units of the object:

config.cpp:

class UserActions {
class showLeft {
	showWindow = 0;
	hideOnUse = 1;
	displayName="Display Left Arrow";
	position="action";
	radius= 0.1;
	onlyForPlayer = 1;
	condition="player distance this <= 5";
	statement="this animate [""hideLeft"", 0]; this animate [""hideRight"", 0.1];";
};
class showRight {
               showWindow = 0;
               hideOnUse = 1;
               displayName="Display Right arrow";
               position="action";
               radius= 0.1;
               onlyForPlayer = 1;
               condition="player distance this <= 5";
               statement="this animate [""hideRight"", 0]; this animate [""hideLeft"", 0.1];";
};
};   

Edited by eagledude4

Share this post


Link to post
Share on other sites

Changed the radius to 3, still nothing.

Edited by eagledude4

Share this post


Link to post
Share on other sites

I changed it back to maintain what I had originally as to not confuse new readers.

Share this post


Link to post
Share on other sites

Dunno, i always used a named vertice of the model for user actions.

BTW, this animate [""hideLeft"", 0.1] seems strange. The second part shouldn't be 1 instead ?

---------- Post added at 13:22 ---------- Previous post was at 13:17 ----------

Mkay, the example you linked me too is a way to add an action to a class man, who probably already has the "action" memory point. That's why the radius was so short.

Share this post


Link to post
Share on other sites

A memory point isn't necessary if you use "action". As for the 1 instead of .1, it doesn't really matter (I'm assuming because it works fine the way I want in bulldozer). I got the actions to display with this config: http://pastebin.com/raw.php?i=ScQKprKV

Edited by eagledude4

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×