Jump to content
Sign in to follow this  
erve

Other camera commands when creating objects

Recommended Posts

I asked the same question on ofpeditingcenter.com......

I really hope a BIS'er can answer this...

Has anyone been able to use camcreate to create an object and use other camera commands on that object? i.e. camsetdir, camsetdive, camsetbank.. I know your supposed to _camera camcommit 0 but it doesn't seem to work..

Say for instance..

_rocket camsetdir 150

_rocket camsetdive -45

_rocket = "Rocket57" camcreate[20,20,20]

_rocket camcommit 0

Doesn't work. neither does;

_rocket = "Rocket57" camcreate[20,20,20]

_rocket camsetdir 150

_rocket camsetdive -45

_rocket camcommit 0

Which seems more logical..

maybe if I create a proper camera first...

_rocket = "camera" camcreate[20,20,20]

_rocket camsetdir 150

_rocket camsetdive -45

_rocket camcommit 0

_rocket = "Rocket57" camcreate[20,20,20]

camdestroy _rocket

Would that work??

The rocket is created but direction and angle are not.

Also Shells & HEAT rounds don't have an initial velocity they just drop straight down!! Is there anyway to set an initial velocity of an object??

I hope all this is possible, because then I might actually have fun using maths/physics for once

Cheers,

Erve.

EDIT:

Maybe Initial velocity could be assigned to the true camera then the imitation one brought in.. i.e.

_rocket = "camera" camcreate[20,20,20]

_rocket camsetdir 150

_rocket camsetdive -45

_rocket camcommit 0

@camcommited _rocket

_rocket camsetrelpos [25,25,25]

_rocket camcommit 0.001

_rocket = "Rocket57" camcreate[20,20,20]

camdestroy _rocket

EDIT #2

Maybe technically a rocket isn't a "camera"

so maybe setdir works???

If so what about vertical angle?? how would I set that as there's no setdive command (not camsetdive just setdive)

??

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×