Remember me
You are here: HomeForumCyberix3D ForumExamples
Welcome, Guest
Username: Password: Remember me

TOPIC: Function parameters

Function parameters 2 months 2 weeks ago #2662

  • minionboy565
  • minionboy565's Avatar
  • OFFLINE
  • Fresh Boarder
  • Behold the truth ...and perish.
  • Posts: 17
  • Thank you received: 2
Function parameters would be great to have, like if there is a function to teleport a cube somewhere there could be 3 parameters, cubeX, cubeY, and cubeZ. You type the parameter names into the Function block and enter the chosen values into a Call block, in the places of their corresponding parameters. Then the Call block would call the teleport function and send it the parameter values and it would set the cube's X value to the value entered as the cubeX parameter in the Call block, and same with the Y and Z.



function(name="teleport", param1="cubeX", param2="cubeY", param3="cubeZ")

Set(var="cube.x" value="cubeX")
Set(var="cube.y" value="cubeY")
Set(var="cube.z" value="cubeZ")
function

Call(function="teleport", param1="9000", param2="2000", param3="0")
Call
[sets cube.x to 9000, cube.y to 2000, and cube.z to 0]

Please add parameters for functions, that would be great.
¹⁰¹¹⁰⁰⁰¹¹⁰¹⁰¹¹⁰¹¹¹⁰¹⁰¹⁰⁰¹¹⁰¹¹⁰⁰¹⁰¹⁰¹¹¹¹⁰¹⁰⁰¹⁰¹⁰¹¹⁰⁰⁰¹¹⁰¹⁰¹¹⁰¹¹(01101000 01100101 01101100 01101100 01101111 00100000 01101001 00100111 01101101 00100000 01101101 01101001 01101110 01101001 01101111 01101110...
The administrator has disabled public write access.

Function parameters 2 months 2 weeks ago #2664

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 599
  • Thank you received: 549
Hello,
Thank you for your suggestion.
Function parameters are already supported.
Here is an example:
func_params.jpg

Regards,
Cyberix3D team
The administrator has disabled public write access.
Time to create page: 0.080 seconds