cassius Posted October 20, 2011 Share Posted October 20, 2011 Is there any way I can nullify PointEntity when I no longer want a character to point somewhere in particular? thanks 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...
Naughty Alien Posted October 20, 2011 Share Posted October 20, 2011 ..what you mean by nullify ?? if you dont need entity to turn against anything, then simply skip PointEntity call.. Quote Link to comment Share on other sites More sharing options...
Aily Posted October 20, 2011 Share Posted October 20, 2011 if entitydistance(mesh,player)<10 pointentity mesh,player Quote "Better" is big enemy of "good" Link to comment Share on other sites More sharing options...
cassius Posted October 20, 2011 Author Share Posted October 20, 2011 I have my enemy character always pointing toward my main character during a swordfight. When the enemy character goes into its die animation it falls forward until flat on the ground but as the main character walks away the "dead" enemy turns because of pointentity. 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...
Naughty Alien Posted October 20, 2011 Share Posted October 20, 2011 If Not MyEnemyDead PointEntity(MyEnemy,MyMainCharacter) Quote Link to comment Share on other sites More sharing options...
Rick Posted October 20, 2011 Share Posted October 20, 2011 Yeah you need to branch your logic off based on if the enemy is dead or not. Quote Link to comment Share on other sites More sharing options...
cassius Posted October 20, 2011 Author Share Posted October 20, 2011 Yeah thanks. It needed a flag. 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.