Posted: Sat Aug 31, 2013 3:09 pm Post subject: Switching values with hotkey?
Is there a way to switch two values?
For example say I have the x y z values of a person and a ball, could I set up a hotkey to switch their xyz values so after the ball is thrown the player moves to the ball's location and vice versa?
Joined: 09 May 2003 Posts: 25932 Location: The netherlands
Posted: Sat Aug 31, 2013 3:25 pm Post subject:
yes. You need addresslist entries with your player coordinates(name them playerX playerY and playerZ) and addresslist entries for the ball (name them ballX ballY and ballZ)
then set a hotkey for your player coordimates (multiple entries can have the same hotkey combo) that sets the value to:
For playerX:
Code:
(ballX)
for playerY:
Code:
(ballY)
for playerZ:
Code:
(ballZ)
Do the same for ball (use a different hotkey than player else it will be weird) and use (playerX) (playerY) and (playerZ) as values instead
An explanation:
Values that are surround by round braces () get their value from the addresslist that has as description the text between them
So, when you press the hotkey, the playerX entry gets the value of the entry named "ballX" _________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum