Jump to content
Sign in to follow this  
rejenorst

Accessing shell cartridge as object (nearestobject)

Recommended Posts

Have tried to get a variable tied to an ejected shell for the 7.92mm.

I tried the following:

_nObject = nearestObject [_unit, "FxCartridge"]

_nObject = nearestObject [_unit, FxCartridge_762"]

_nObject = nearestObject [_unit, FxCartridge_small"]

But none seem to work.

Anyone managed to get an ejected shell casing as an object?

Am trying to make an intro script that focuses on an ejected shell casing.

Share this post


Link to post
Share on other sites

Somehow I think it's not counted as an object, more like a 3d particle effect.

Share this post


Link to post
Share on other sites

There's some persistent shell addons, maybe rip those open and see how they work? Might put you on the right track.

Share this post


Link to post
Share on other sites

Actually, they are real objects (you can even createVehicle them). However I think the way they are spawned makes it impossible to get a reference to them.

Share this post


Link to post
Share on other sites

You can increase the "TimeToLive" parameter in the config (in the class "ThingEffect" if it hasn't changed) for having them being persistent. But i don't think you can retrieve them through nearestobject, as being stated.

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  

×