SpEcIeS Posted February 7, 2016 Share Posted February 7, 2016 This morning I started up a fresh "Advanced First-Person Shooter" project. After the "07-AI and Events.map" was loaded and then ran, immediately an error was generated: Script Error error in function 'SetCollisionType'. argument #3 is 'boolean'; '[no object]' expected. Line 90 Is anyone else producing this error? Quote SpEcIeS Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 7, 2016 Share Posted February 7, 2016 That boolean was added to the beta version a week or so ago. Have you switched builds? Quote Link to comment Share on other sites More sharing options...
SpEcIeS Posted February 7, 2016 Author Share Posted February 7, 2016 Not that I am aware of. lol Quote SpEcIeS Link to comment Share on other sites More sharing options...
SpEcIeS Posted February 7, 2016 Author Share Posted February 7, 2016 If the following two line are removed then it runs as expected: self.entity:SetCollisionType(Collision.Prop,true) self.entity:SetCollisionType(Collision.Character,false) When I first applied this to a zombie model, on a separate map, it ran backwards to attack, but "07-AI and Events.map" seems to work normally. Quote SpEcIeS Link to comment Share on other sites More sharing options...
macklebee Posted February 7, 2016 Share Posted February 7, 2016 Like Aggror mentioned, just remove the boolean from those commands (true/false) or just update your project and it will work properly. As for the zombie model running backwards, what is the direction that the model faces when selected in the scene? If it's not facing towards its local +Z axis, then you have to adjust the 'character angle' in its Physics properties panel. Look at the crawler for reference and you will see the character angle is set to 180 because the crawler faces its local -Z axis. 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...
SpEcIeS Posted February 7, 2016 Author Share Posted February 7, 2016 It would seem that the "mdl" runs backwards, but the "prefab" operates as expected. Anyway, once I removed the code that I mentioned above, everything works fine. Not sure how beta code slipped its way into this build. Perhaps I will "Verify Integrity" to make sure everything is above board. Quote SpEcIeS Link to comment Share on other sites More sharing options...
macklebee Posted February 7, 2016 Share Posted February 7, 2016 It may no longer be a beta feature - the default branch gets updated as well. 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...
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.