I want to send a Message to a defined object detected by a radar so I use getHitObject() [returns the last object detected by the radar sensor]. But… I don’t know how to fill the “To:” reference for the object in a script. It seems that I can’t!!! How it can be??? Help me please!
PD: I have the same question but in the other way. Once an object received a message from another object… How can I return another message?
Using setToPropName(“name”) doesn´t work with “OBItem” for example. Is used to put the name of a property (In case you use setBodyType() to property). I hope you aunderstand me oh… I hope I find the solution!! Help me please. Thx!
Andrew-101 is right. I was doing something wrong in my script that blinds me… Really sorry Andrew I was wrong and I didn’t realize so thank you very much!!
I’m just happy to help :), I didn’t even know if it would work.
I’m going to let you in on a really good tip. Its called dir and it works like this:
print dir(GameLogic)
That will output all the functions that can be used for GameLogic.
You can use this on cont, own, sensors, actuators and everything that has a function on it.
So next time you need to know how to manipulate something just use dir and see if that gives you any clues.