Page MenuHomeFeedback Tracker

Init field of mine objects isn't working
Closed, ResolvedPublic

Description

Placing any script or code in the init field of a mine has no effect.

Also you can't addactions to mines,
They also don't seem to register when using Cursortarget or nearestobjects either.

Details

Legacy ID
1060298447
Severity
Minor
Resolution
Won't Fix
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Place a simple hint in the init field

Hint "nothing happening"

and when you run the mission nothing is displayed on the screen.

Event Timeline

F2kSel edited Steps To Reproduce. (Show Details)Apr 5 2013, 3:43 AM
F2kSel edited Additional Information. (Show Details)
F2kSel set Category to Scripting.
F2kSel set Reproducibility to Always.
F2kSel set Severity to Minor.
F2kSel set Resolution to Won't Fix.
F2kSel set Legacy ID to 1060298447.May 7 2016, 1:26 PM

Unfortunately, described functionality is occuring in OA, as well. We cannot change this behavior and it will remain for the time being in the game.

Reasons:
a] mine is not a vehicle (it is a simplier structure from the engine's point)
b] on mine creation, the object translates to become object of type ammo (ammunition). That is why all attached scripts in initialization field are lost.