Scripts / Definition of ActivateIfUsed & AISetEntityControl

Author
Message
vlk
8
Years of Service
User Offline
Joined: 12th Jul 2015
Location:
Posted: 12th Jul 2015 15:41
I want to modify some AI scripts, but there are two functions i don't understand.
I can not find them in the top thread "LUA Scripting commands and structure"

Here they are:
AISetEntityControl(EntObjNo,AI_MANUAL)
ActivateIfUsed(e)

By the way, is there some doc or a thread in which I can find more comprehensive function instruction?
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Jul 2015 19:27
Quote: "ActivateIfUsed(e)"

in the right click properties is a field called 'ifused' - you type the name of some other entity(s) which are set to not spawn at start and calling ActivateIfUsed(e) will make them spawn

i have no idea on the other 1, i dont really think it does anything but Lee would know
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
vlk
8
Years of Service
User Offline
Joined: 12th Jul 2015
Location:
Posted: 13th Jul 2015 04:10
Quote: "in the right click properties is a field called 'ifused' - you type the name of some other entity(s) which are set to not spawn at start and calling ActivateIfUsed(e) will make them spawn

i have no idea on the other 1, i dont really think it does anything but Lee would know "


Thanks a lot.
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Jul 2015 04:23
I will see if I can find out the other one.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 13th Jul 2015 07:02
OP, I took the liberty of just renaming this to a smaller title as it was messing the tables a bit.

Mighty fine question too, the latter I've never used either. Might be a some awesome toy we've never used.
AKA SisterMatic (Steam)
Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD
PM

Login to post a reply

Server time is: 2024-05-09 00:53:17
Your offset time is: 2024-05-09 00:53:17