Skip to main content

Game Creator 2

The integration for Game Creator 2 is located in SensorToolkit/Integrations/Game Creator 2. In there you'll find a file gamecreator2-integration.asset. Double-click it to extract the files. Make sure you already have Game Creator 2 imported into your project or you will get compile errors.

The integration includes many actions, conditions and triggers for the Game Creator visual scripting system. Find them all under the SensorToolkit category. Open the demo scene to see an example how to use the integration.

Actions

  • Clear Sensor: Clears the Sensor of all its detections.

  • Get Detections: Get all detected game objects of a sensor and store in a list.

  • Get Line Of Sight Result: Get detailed results of a line of sight test for the specified target.

  • Get Nearest Detection: Gets the nearest detected game object to the Sensor.

  • Get Nearest Detection To Point: Gets the nearest detected game object to the specified point.

  • Get Signal: Get the Signal data for the detected game object.

  • Pulse Sensor: Manually pulses the sensor.

  • Set Pulse Interval: Sets the interval at which the Sensor will pulse. The Sensor should be set to 'Fixed Interval' mode for this to work.

  • Set Pulse Mode: Sets the mode by which the sensor will pulse

  • Seek Game Object: Set the game object that the SteeringSensor should seek.

  • Seek Position: Set the position that the SteeringSensor should seek.

  • Clear Seek Target: Clears the Seek Target on the SteeringSensor so that it stops seeking.

Conditions

  • Compare Visibility: Returns true if the visibility of the target satisfies the comparison.

  • Is Detected: Returns true if the game object is detected by the Sensor.

  • Is Obstructed: Returns true if the RaySensor is obstructed.

  • Is Seeking: Returns true if the SteeringSensor is currently seeking.

Triggers

  • On Clear: Executed when the RaySensor is clear and was previously obstructed.

  • On Obstruction: Executes when the RaySensor is obstructed and was previously clear.

  • On Detection: Executes when the Sensor detects a new game object.

  • On Detection Lost: Executes when the Sensor loses detection of a game object.

  • On Some Detection: Executes when the Sensor detects a game object and previously detected nothing

  • On No Detection: Executes when the Sensor no longer detects any game objects.

Property Accessors

  • Is Detected: Returns true if the target is detected by the sensor.

  • Is Ray Obstructed: Returns true if the RaySensor is currently obstructed.

  • Is Seeking: Returns true if the SteeringSensor is currently seeking towards a target.

  • Is Seek Target Reached: Returns true if the SteeringSensor has reached its destination.

  • Signal Strength: Returns the signal strength for a detected game object on a Sensor.

  • Ray Detection Normal: Returns the hit normal direction for a game object detected by a RaySensor.

  • Ray Obstruction Normal: Returns the hit normal direction for a game object obstructiong the RaySensor.

  • Steering Vector: Returns the Steering Vector from the SteeringSensor. This points towards the seek target while avoiding nearby obstacles.

  • Get Nearest Detection: Returns the nearest detected game object to the Sensor.

  • Get Nearest Detection To Point: Returns the nearest detected game object to the specified point.

  • Ray Obstruction Target: Returns the game object that is obstructing a RaySensor.

  • Ray Detection Position: Returns the hit position for a game object detected by a RaySensor.

  • Ray Obstruction Position: Returns the hit position that is obstructing a RaySensor.