cassius Posted October 9, 2011 Share Posted October 9, 2011 When I use pointentity to make enemies point to main character(player) it makes the enemy glide toward main character. Is this an intended feature of pointentity . When I noticed this tendency I thought I might as well use the enrmy walk animation sunce the darned thing is moving anyway. If stopanim = False If EntityDistance(jane,knight) < 7 And EntityDistance(jane,knight) > 1 PointEntity(knight,jane) knight_walk() ElseIf EntityDistance(jane,knight) < 1 PointEntity( knight,jane) jane_attack() knight_attack() EndIf EndIf Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Josh Posted October 10, 2011 Share Posted October 10, 2011 PointEntity() only rotates an entity. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
cassius Posted October 10, 2011 Author Share Posted October 10, 2011 Strange. Must something in the main loop causing it but I have turned it to my advantage. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
macklebee Posted October 10, 2011 Share Posted October 10, 2011 i would assume its the 'knight_walk()' making it move... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
cassius Posted October 10, 2011 Author Share Posted October 10, 2011 No it was mving without the knight_walk function,I just thought if its gonna move I might as well use thewalk function. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Russell Posted March 1, 2020 Share Posted March 1, 2020 Hello team!! After read learn page with the example and this thread I'm still trying to use and understand PointEntity... But i can't make this go to walk... ¿Could you help me? I have a scene with only 3 elements in there: A camera named: MobileCamera A model named: SpaceShip A brush called: Earth I want make MobileCamera (with Script called PointToShip.lua) always point to SpaceShip, but my code or my bad sintax doesn't work... This is my code: Entity1 = GetEntityByName("MobileCamera") Entity2 = GetEntityByName("Spaceship") function Script:Start() self.enabled=true end function Script:UpdateWorld() PointEntity(Entity1,Entity2) end I have read @Rick thread-topic about this command. But i don't understand to make success the sintax anyway... Many thanks!! Quote Link to comment Share on other sites More sharing options...
Jazz Posted March 1, 2020 Share Posted March 1, 2020 This thread is from 2011. There is no PointEntity anymore, it is Point. self.entity:Point(Entity2) self.entity is the entity the script is attached to. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
cassius Posted March 1, 2020 Author Share Posted March 1, 2020 I had forgotten this thread.It was about le 2. Its the follow function along with point that makes enemy follow main character. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.