Hi everyone,
I'm working on a mod and there are a bunch of objects in a cell that I need replaced with another object on activation.
With my (very) limited scripting knowledge I've not yet gotten it to work, some advice would be greatly appreciated.
What I basically need the script to do is:
- Fetch the coordinates of the object reference
- Disable it
- Place a new object at the same coordinates
Here is my script so far (for sake of readability replaced the reference with [reference] and [new reference]):
begin skv_replace float newXfloat newYfloat newZfloat newR if ( MenuMode == 1 ) return endif if ( OnActivate == 1 ) set newX to ( [reference]->GetPos, X )set newY to ( [reference]->GetPos, Y )set newZ to ( [reference]->GetPos, Z )set newR to ( [reference]->GetAngle, Z )DisablePlaceitem "[new reference]" newX newY newZ newR endif end skv_replace
Thanks in advance.