Blockland Forums > Modification Help

Homing Player With Sword Weapon

Pages: << < (4/7) > >>

Space Guy:

You're able to make a player aim left/right with setTransform, but not up or down.

Uxie:

It doesn't know the funtion "containerRadiusSearch"

Truce:


--- Quote from: Space Guy on January 09, 2011, 12:06:29 PM ---You're able to make a player aim left/right with setTransform, but not up or down.

--- End quote ---

You can force a player to aim vertically by restraining their look limits %player.setLookLimts(%up,%down).

Uxie:

But how do I get the player to aim at a specific player in a specific Radius? containerRadiusSearch doesn't work.

Amade:


--- Quote from: Uxie on January 09, 2011, 12:35:08 PM ---But how do I get the player to aim at a specific player in a specific Radius? containerRadiusSearch doesn't work.
--- End quote ---
uuuhhhhh here's how you do a container radius search

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


Pages: << < (4/7) > >>

Go to full version