Post: playable area
07-21-2016, 06:49 PM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all. When players spawn, I am wanting to spawn a few items that players can pick up. Obviously they have to be possible to reach so I have used
level.safe = getentarray("playable_area", "targetname");

I am assuming this is right? My question - does this return a bool? so I could do something like

    
if(safe) SpawnStuff;


if I have gone about this the wrong way, how would I do it? Thanks :yes:
(adsbygoogle = window.adsbygoogle || []).push({});
07-21-2016, 08:48 PM #2
Looks pretty wrong but Im not that used to working with the spawn area, first of all are you sure "playable_area" is the targetname for the spawners?

I would rather do something like this.

    stuff1 = spawn( "STUFF_TO_SPAWN", self.origin ); 


Which spawns the object directly on you.

Also I would make sure "self" is the player.

If you want to finds the real targetname of the spawnarea I'd suggest looking at decompiled scripts of the map your going to play since the targetname may vary depending on which map you play on.

Also the getentarray returns all entities in the map with the name "playable_area" I don't remember but I don't think you can even have more entities with the same name.
07-22-2016, 04:37 PM #3
seanhellen
Are you high?
Hmmm, i was hoping to spawn them (about 20 models in all) in random places when the game starts. I found the playable_area thing with a google search so not sure about it working. With the places being random, I cant guarantee they will spawn in a place thats accessible. Might have to go through a few files lol.
07-22-2016, 04:53 PM #4
anthonything
Space Ninja
Originally posted by seanhellen View Post
Hmmm, i was hoping to spawn them (about 20 models in all) in random places when the game starts. I found the playable_area thing with a google search so not sure about it working. With the places being random, I cant guarantee they will spawn in a place thats accessible. Might have to go through a few files lol.


Is this for zombies or multiplayer
07-22-2016, 05:28 PM #5
seanhellen
Are you high?
Multiplayer
07-23-2016, 01:01 AM #6
Couto
Haxor!
You should use You must login or register to view this content. for string searcher in the You must login or register to view this content. and search for something related to spawn.
07-23-2016, 06:05 AM #7
seanhellen
Are you high?
Originally posted by Couto View Post
You should use You must login or register to view this content. for string searcher in the You must login or register to view this content. and search for something related to spawn.


Ok as it turns out, this in_playable_area is a zombies thing so can't use it in mp. Anyone know how I can create something similar?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo