[Script] StartplayerLookAt won´t work - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [Script] StartplayerLookAt won´t work (/thread-16880.html) Pages:
1
2
|
[Script] StartplayerLookAt won´t work - ooadrianoo - 07-10-2012 Here is my script: Code: void OnStart() RE: [Script] StartplayerLookAt won´t work - SilentStriker - 07-10-2012 Check so the entity has the right name RE: [Script] StartplayerLookAt won´t work - ooadrianoo - 07-10-2012 Checked: It is the right name Any other ideas? RE: [Script] StartplayerLookAt won´t work - JMFStorm - 07-10-2012 Put "StartPlayerLookAt("bust_1", 6.0f, 6.0f, "");" or "StartPlayerLookAt("bust_1", 6, 6, "");" instead. And also, 6 is pretty f*king high number. Could use 2-3 if you don't want it to look completely retarted. RE: [Script] StartplayerLookAt won´t work - SilentStriker - 07-10-2012 Oh yea I forgot about that, as JMFStorm says either put f behind the 6.0 or just write 6 that's because everytime you write with a decimal it needs a f since it's a float but if you write without decimals you don't need the f since then it's a integer. RE: [Script] StartplayerLookAt won´t work - ooadrianoo - 07-10-2012 I tried all what you said and still remains the same. /SilentStriker: Can you give me an example? RE: [Script] StartplayerLookAt won´t work - Your Computer - 07-10-2012 What entity represents "bust_1"? RE: [Script] StartplayerLookAt won´t work - ooadrianoo - 07-10-2012 a head of a statue RE: [Script] StartplayerLookAt won´t work - SilentStriker - 07-10-2012 (07-10-2012, 09:49 PM)ooadrianoo Wrote: I tried all what you said and still remains the same.hmm... So a float looks like this 6.0f and a integer looks like this 6 Here's a video that YourComputer made: http://www.youtube.com/watch?v=hrkpC5N_pZM&feature=plcp RE: [Script] StartplayerLookAt won´t work - Your Computer - 07-10-2012 The bust statue is a StaticProp entity. StartPlayerLookAt does not relate to StaticProp entities. You'll have to edit the entity in the model editor and change its type to Object::Static or use a different statue that isn't a StaticProp entity. |