Script "Injection"
Moderator: Core Staff
Script "Injection"
Scripting question...
Let's say I finish a map, and 3 months later, my .map file gets erased. Let's also say I had put a few secrets into the map, but I don't remember where my triggers where. I'm wondering if it's possible to write a script, put it in my PK3, and make it find and print the coordinates of the trigger brushmodel.
Any help is appreciated.
Let's say I finish a map, and 3 months later, my .map file gets erased. Let's also say I had put a few secrets into the map, but I don't remember where my triggers where. I'm wondering if it's possible to write a script, put it in my PK3, and make it find and print the coordinates of the trigger brushmodel.
Any help is appreciated.
ODD
The brushmodel that acts as the trigger to open the secret.Deadly wrote:but what do u want to find the trigger or the brushmodel?
Like...
Code: Select all
main()
{
thread showCoords();
}
showCoords()
{
trig1 = getent ("trig1", "targetname");
while (1)
{
iprintln( trig1.origin )
}
ODD
There was a thread that covered this recently i think. You'll get 0,0,0 for triggers and brushmodel as they don't have an origin on they're own, unless they were given an origin.
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
Who is online
Users browsing this forum: Google [Bot] and 36 guests