Please or Register to create posts and topics.

Synchronizing objects on an axis:

PreviousPage 2 of 2

Would it work to store the entities in a global variable attached to a numerical id? Is there a way to have a script that saves the name of the object calling it in a variable on a table at a position specified? So I could have each of the objects call a script with a id number, and then that id number tells the controller script both of the entities? And about the trig thing, I'm not seeing things like sin/cos, which means I don't know how to make the effect along an arbitrary axis (currently x,y and z can be done, but not a axis that is a combination of those)
Thank You,
Sound Logic

If you're OK with it being static in the map you can specify the entities in Entity Groups for the logic_script. If it has to be dynamic you'll need to pass numbers as parameters and append them to the name of a base or use them as an index into an array. As for the axis, you can aready do XY or YZ or XZ by changing which entity it reads origin from for which axes.

PreviousPage 2 of 2