Is it possible to modify trigger scripts to change text box....for ex. on a trigger use for a door change text from standard "hold() to open door" to custom text. I've looked into trigger.gsc scripts and they just refer to a default script for text. Im going to keep digging, but any help would be appreciated.
trying to change text in my own map on a custom door with a trigger use...ive narrowed it down to where i can change it in the trigger.gsc...but do not want to modify original script and not sure how to impose a custom version to my map
Well, actually, you don't need to change any stock scripts. On the trigger that you have in your map you should have a targetname assigned to it. so in your code you could do something like this...
and just in case you don't know how to thread the function, in yourmapname.gsc, under the main function, add this...
thanks..ill try it now Double Post Merge: July 22, 2017, 02:22:55 amits workimg other then cost. its not allowing me to purchase. the zombie_cost key isnt working, probably because code is not in my trigger function. any help?
Last Edit: July 22, 2017, 02:22:55 am by Ishooturfaces
The only way I know how to add cost is like this...
add this to the top with all the other #using
the go down to your other code and add this
and when you buy the door, it should take away whatever you set the cost to. Don't forget to change the getEnt again (as this one still says "whatever"), and the function name (as this also says whatever)
so my script ended up being a lot more complex then original. i am trying to setup a brushmodel, script model and clip which are linked to one trigger. I have found that the original zombie_door script will not work and have written my own for my trigger. It compiles but will not work in game. i feel i am missing something. a link script to models or something lol. If i were to pm it to you could you take a look and give me your opinion?