Blockland Forums > Modification Help
Homing Player With Sword Weapon
<< < (5/7) > >>
Uxie:

--- Quote from: Amade on January 09, 2011, 01:58:10 PM ---uuuhhhhh here's how you do a container radius search

--- Code: ---InitContainerRadiusSearch(%center, %radius, %typemasks);
while(%hit = ContainerSearchNext())
{
dostuff();
}
--- End code ---

--- End quote ---
How do I make it do that with OnTrigger?
Nexus:

--- Quote from: Amade on January 09, 2011, 03:04:52 AM ---I highly doubt you actually know what you're talking about, let alone if you know how to do this.

--- End quote ---

You are probably right, since I only have limited experience with raycasts, but I do know a raycast can be used to test direction, as well as distance.  Then you just have the player face that direction and attack.
Amade:

--- Quote from: Uxie on January 09, 2011, 03:21:52 PM ---How do I make it do that with OnTrigger?

--- End quote ---
Are you asking for help making this or asking for someone else to script this for you? If the latter, this thread belongs in suggestions and requests.
Uxie:

--- Quote from: Amade on January 10, 2011, 12:40:18 AM ---Are you asking for help making this or asking for someone else to script this for you? If the latter, this thread belongs in suggestions and requests.

--- End quote ---
Honestly, that code confuses me. I'm sorry.
lordician:
A thrust would not require a radius search right? :C
Navigation
Message Index
Next page
Previous page

Go to full version