Jump to content

Entity to Entity Communication (Solved)


jingalls
 Share

Recommended Posts

After some experimentation I have figured out how to get entities to interact directly with other entities, without having to add any code on the model level.


By using the call: (first entity).location.parent.model.(second entity)

inside a search or other process block inside the first entity I can access and manipulate the second entity.


Example Model 1 - Ball Toss With Arch

Simple Model to show different entities throwing a "ball" back and forth


Example Model 2 - RvB

Model to show entities "fighting" each other. In this model the entities interact with each other by reducing HP and destroying other entities

Ball Toss with Arch.spfx

RvBv4.spfx

Link to comment
Share on other sites

×
×
  • Create New...