Nice little feature for PvE and SP missions. Most triggers either don’t work yet, or i’m missing something.
- Item Spawning
To spawn items, you need to use game_trigger_processor_create_entity
This entity has the following properites:
entity{
_template:t="game_trigger_processor_create_entity"
transform:m=[[1, 0, 0] [0, 1, 0] [0, 0, 1] [299.954, 4.21113, -93.4972]]
game_trigger_processor__onTriggerHash:i=1 //random no need to edit
game_trigger_processor_create_entity__template:t="at_44_gun_item+item_in_world" //spawned entity
"game_trigger_processor_create_entity__entityEid:eid":i=0
game_trigger_processor_create_entity__initTransform:b=yes
game_trigger_processor__onTrigger:t="atspawn" //name of the parent trigger that will spawn this entity
game_trigger_processor_create_entity__destroyEntityOnDisappear:b=yes //needs research, of course name is self explanatory
}
Now we have the trigger that will spawn our AT-44 when triggered by another trigger. So we now we need that another trigger.
You can use:
- Timer - Spawn weapon after X seconds of match creation
- Box or Sphere - Spawn weapon when the player enters a box or sphere.
Timer example:
Place the timer on the scene, first line as seen on screenshot will accept the trigger name of the entity creator, which was atspawn
The timer will trigger the entity creator trigger after 30 seconds. (not after first spawned soldier!)
The weapon is spawned at the creator after 30 seconds:
- Sphere or Box example:
You can also spawn something if the player enters a box or sphere.
After placing down either game_trigger_box
or game_trigger_sphere
(box is missing the actual box outliner), the entity has to be like this:
entity{
_template:t="game_trigger_sphere"
transform:m=[[0.498703, 0, 0] [0, 0.860525, 0] [0, 0, 0.498703] [296.892, 3.28692, -93.5775]]
sphere_zone__radius:r=5
game_trigger_sphere__onEnterEventTrigger:t="atspawn" //which trigger to activate when entering sphere
game_trigger_sphere__onLeaveEventTrigger:t="" //activate when leaving sphere
"game_trigger__includeGrids:list<t>"{
item:t="humans" //triggerable entities
}
"game_trigger__requireComponents:list<t>"{
item:t="hero" //needed too. needs research.
}
}
Once i enter this sphere:
The desired entity spawns:
Here is the scene.blk:
scene.txt (6.0 KB)
ONLY WORKS ON DEV CLIENT FOR NOW.
Other triggers that needs research:
game_trigger_processor_transform_transition
- Based on BLK, it can move and rotate objects between two coordinates.
game_interactable_object_base
- Doesn’t seem to work. It’s also missing a lot of properties from where this was ported from
game_trigger_appear
- activates event
game_trigger_disappear
- Haven’t checked yet.
game_trigger_processor_self_destroy
- Haven’t checked yet.
game_trigger_processor_attach_game_effect
- Sounds exciting. Couldn’t get it to work
game_trigger_processor_sound_oneshot
- sounds interesting. Couldn’t get it to work, what soundName is it looking for?
game_trigger_processor_visual_log
- Not sure what this would do as it does nothing. If it’s visual debug, it would be useful.
`