Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lantern script
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#11
RE: Lantern script

PHP Code: (Select All)
void PickLanternUnlockDoor(string &in EntityNamestring &in Type)
{
if(
Type == "OnPickup") {
SetSwingDoorLocked("door_name"falsetrue);
}


I found this from another thread, could I make this work with mine?
10-22-2010, 03:59 PM
Find
Mofo Offline
Member

Posts: 71
Threads: 4
Joined: Sep 2010
Reputation: 2
#12
RE: Lantern script

(10-22-2010, 03:59 PM)Hooumeri Wrote:
PHP Code: (Select All)
void PickLanternUnlockDoor(string &in EntityNamestring &in Type)
{
if(
Type == "OnPickup") {
SetSwingDoorLocked("door_name"falsetrue);
}


I found this from another thread, could I make this work with mine?

sure, works fine.
10-22-2010, 04:13 PM
Find
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#13
RE: Lantern script

(10-22-2010, 04:13 PM)Mofo Wrote:
(10-22-2010, 03:59 PM)Hooumeri Wrote:
PHP Code: (Select All)
void PickLanternUnlockDoor(string &in EntityNamestring &in Type)
{
if(
Type == "OnPickup") {
SetSwingDoorLocked("door_name"falsetrue);
}


I found this from another thread, could I make this work with mine?

sure, works fine.

Then what should I type to "if(Type == "____") instead of OnPickup?
10-22-2010, 04:14 PM
Find
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#14
RE: Lantern script

Something like OnActive?
10-22-2010, 09:11 PM
Find
ThePaSch Offline
Member

Posts: 108
Threads: 11
Joined: Sep 2010
Reputation: 0
#15
RE: Lantern script

(10-22-2010, 09:11 PM)Hooumeri Wrote: Something like OnActive?

Nope, it's not possible with my script piece, no matter what you replace OnPickup with. "OnActive" is not a valid Type.
10-22-2010, 09:42 PM
Find
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#16
RE: Lantern script

If you check the tooltip on the CallbackFunc text box you see that the available types are OnPickup, Break and OnIgnite. I don't think there's more than that.
10-23-2010, 01:25 AM
Find
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#17
RE: Lantern script

(10-23-2010, 01:25 AM)nofsky Wrote: If you check the tooltip on the CallbackFunc text box you see that the available types are OnPickup, Break and OnIgnite. I don't think there's more than that.

But when I checked them from the script functions page, it said

"* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc
10-23-2010, 02:45 PM
Find
ThePaSch Offline
Member

Posts: 108
Threads: 11
Joined: Sep 2010
Reputation: 0
#18
RE: Lantern script

(10-23-2010, 02:45 PM)Hooumeri Wrote: But when I checked them from the script functions page, it said

"* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc

"OnActive" still doesn't exist, afaik.
10-23-2010, 07:03 PM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#19
RE: Lantern script

Would be "OnActivate" or "OnActivation" anyway, "OnActive" isn't English. Tongue

10-23-2010, 07:43 PM
Find
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#20
RE: Lantern script

(10-23-2010, 07:43 PM)Pandemoneus Wrote: Would be "OnActivate" or "OnActivation" anyway, "OnActive" isn't English. Tongue

Is there a way to see all of the possible commands you can type in there?
10-23-2010, 09:09 PM
Find




Users browsing this thread: 1 Guest(s)