trying to make an object appear when "pushed"

Started by Jojowl80, Tue 26/05/2020 23:15:20

Previous topic - Next topic

Jojowl80

hey! I would like to turn a TV on when "pushed" to put an object in place. the object is set at false the object ID is 0

//script

function hTelevision_AnyClick() {
  if(Verbs.UsedAction(eGA_WalkTo)) {

}
  else if(Verbs.UsedAction(eGA_Push)) {
    player.Say("Okay.");
  Object[0].Visible=true
}
}

error: fixed size array cannot be used in this way

Im very new to scripting any help would be appreciated!

Crimson Wizard

It's "object" with small "o", Object is a name of a type, object is an array of Objects.

Jojowl80

worked. thank you so much for the super quick reply!

SMF spam blocked by CleanTalk