Mounted Torchamajig, not sure how to explain...

Discussions about Coding and Scripting
Post Reply
User avatar
zacman
Adept
Posts: 412
Joined: Wed Apr 15, 2009 5:36 am
Personal rank: M-M-M-MONSTER KILL

Mounted Torchamajig, not sure how to explain...

Post by zacman »

I really have NO Idea how to do this, but you know those Infiltration Turrets the player controls? I want to make a sort of Searclight that the player can position and then move away to illuminate an area for my MH Map... Has anyone got any idea how I might do this?
Image[url=steam://friends/add/76561198048595886]Image[/url]
User avatar
Shadow
Masterful
Posts: 743
Joined: Tue Jan 29, 2008 12:00 am
Personal rank: Mad Carpenter
Location: Germany
Contact:

Re: Mounted Torchamajig, not sure how to explain...

Post by Shadow »

Why don't you simply use the Flashlight Item ? (UnrealI.Flashlight)
Image
User avatar
zacman
Adept
Posts: 412
Joined: Wed Apr 15, 2009 5:36 am
Personal rank: M-M-M-MONSTER KILL

Re: Mounted Torchamajig, not sure how to explain...

Post by zacman »

I want it to be a mounted searchlight thingie, like the police use in urban sieges to aim at buildings. I don't want the player to be able to walk off with it.

(EDIT)
Like this...
Attachments
LitezIWanted.jpg
Image[url=steam://friends/add/76561198048595886]Image[/url]
Myth
Inhuman
Posts: 988
Joined: Tue Feb 12, 2008 5:57 pm
Personal rank: Low Poly Freak

Re: Mounted Torchamajig, not sure how to explain...

Post by Myth »

Take a look at UnrealI.Flashlight's code, take a look at the Infiltration Turret's code. Study them until you understand how they work and then combine them into a new actor. I'm not very experienced in uscript so that's how I'd do it.
User avatar
Rakiayn
Masterful
Posts: 550
Joined: Fri Aug 28, 2009 3:33 pm

Re: Mounted Torchamajig, not sure how to explain...

Post by Rakiayn »

you could give the flashligh to the player when he is standing close enough. and let the flashlight destroy its self if you are to far away
Post Reply