Scripts / Rotate entity script not working!!!Help!!

Author
Message
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 21st Apr 2015 09:43 Edited at: 21st Apr 2015 09:45
i am trying to make a simple script which make an entity rotate to face the player,however its not working.
for some reason it will cause the entity to spin at a high speed and send it flying off into the sky???



what am i doing wrong with this script?
PM
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 21st Apr 2015 09:54
Are you sure the entity is using that script? I can't see why would it spin around and there is no any code to propel it towards the sky :/
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 21st Apr 2015 09:58 Edited at: 21st Apr 2015 10:10
yep,i attach it to the entity,set the entity to dynamic (because it donst do anything unless its dynamic).
i've tried it on multiple different entitys both tgc ones and my own with the same result,they will spin round and fly off if touched.
PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 21st Apr 2015 13:40 Edited at: 21st Apr 2015 13:57
Hi,

If you have physics for the object that you are turning 'on' then turn it 'off' it should work as you require it after that.
You can turn it off in the properties setting.

I don't know why its doing this, but it done the same for me as well the other day with the shooting target, in an example I was working on.

Hopefully someone can explain why.

perelect.
I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 4 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000.
HarryWever
3D Media Maker
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: below Sea level
Posted: 21st Apr 2015 17:24
In the properties. try to change set inmoblie.
Maybe that helps.

Harry
Harry
PM
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 22nd Apr 2015 10:42
thanks its working now i set it to imobile
PM

Login to post a reply

Server time is: 2024-05-06 09:05:48
Your offset time is: 2024-05-06 09:05:48