Jump to content
Sign in to follow this  
Vasilyevich

Addaction while looking at Laptop

Recommended Posts

addAction["Start download","execute.sqf"

How can i add this to a laptop so that the player who is looking at the laptop can use it, but only while looking at the laptop and not farther away than 1m ?

Share this post


Link to post
Share on other sites

AddActionLaptop = Laptop addAction ["<t color=""#1"">" +"Start download","execute.sqf",[],1,true,true,"","_this distance _target < 1"];

instead of #1 its possible to add all different colors.

You mean the distance _target. Just change it to the distance you want.

Share this post


Link to post
Share on other sites

You can add && cursorTarget _target to Cigar0's condition and they'll have to be looking at it directly.

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  

×